Struct dlopen::symbor::PtrOrNull[][src]

pub struct PtrOrNull<'lib, T: 'lib> { /* fields omitted */ }

Safe wrapper around const pointer.

It is recommended only for obtaining pointers that can have null value.

Implementations

impl<'lib, T> PtrOrNull<'lib, T>[src]

pub fn new(pointer: *const T) -> PtrOrNull<'lib, T>[src]

Trait Implementations

impl<'lib, T: Clone + 'lib> Clone for PtrOrNull<'lib, T>[src]

impl<'lib, T: Copy + 'lib> Copy for PtrOrNull<'lib, T>[src]

impl<'lib, T: Debug + 'lib> Debug for PtrOrNull<'lib, T>[src]

impl<'lib, T> Deref for PtrOrNull<'lib, T>[src]

type Target = *const T

The resulting type after dereferencing.

impl<'lib, T> FromRawResult for PtrOrNull<'lib, T>[src]

impl<'lib, T: Send> Send for PtrOrNull<'lib, T>[src]

impl<'lib, T: Sync> Sync for PtrOrNull<'lib, T>[src]

Auto Trait Implementations

impl<'lib, T> RefUnwindSafe for PtrOrNull<'lib, T> where
    T: RefUnwindSafe

impl<'lib, T> Unpin for PtrOrNull<'lib, T>

impl<'lib, T> UnwindSafe for PtrOrNull<'lib, T> where
    T: RefUnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.