[][src]Struct nsi::argument::Pointers

pub struct Pointers<'a> { /* fields omitted */ }

Raw pointer array type without lifetime guaratees.

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

If you need to send pointers a better alternative is the References type that allows the compiler to check that the the referenced data outlives the Context.

Implementations

impl<'a> Pointers<'a>[src]

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

This is marked unsafe because the responsibility to ensure the pointer can be safely dereferenced after the function has returned lies with the user.

References is a safe alternative.

Trait Implementations

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

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

type Error = &'static str

The type returned in the event of a conversion error.

Auto Trait Implementations

impl<'a> RefUnwindSafe for Pointers<'a>

impl<'a> !Send for Pointers<'a>

impl<'a> !Sync for Pointers<'a>

impl<'a> Unpin for Pointers<'a>

impl<'a> UnwindSafe for Pointers<'a>

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.