[][src]Struct nsi::arg::Pointer

pub struct Pointer { /* fields omitted */ }

Raw pointer type without lifietime guaratees.

This can't guarantee that the data this points to outlives the Context you eventually send this to. This is the user's responsibility.

If you need to send a pointer a better alternative is the Reference type that allows the compiler to check that the the data outlives the Context.

Implementations

impl Pointer[src]

pub unsafe fn new(data: *const c_void) -> Self[src]

Trait Implementations

impl<'a, 'b> From<Pointer> for ArgData<'a, 'b>[src]

impl<'a, 'b> TryInto<Pointer> for ArgData<'a, 'b>[src]

type Error = &'static str

The type returned in the event of a conversion error.

Auto Trait Implementations

impl RefUnwindSafe for Pointer

impl !Send for Pointer

impl !Sync for Pointer

impl Unpin for Pointer

impl UnwindSafe for Pointer

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, 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.