[][src]Struct nsi::argument::References

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

Reference array type with lifetime guarantees.

Prefer this over using a raw Pointers as it allows the compiler to check that the data you reference outlives the Context you eventually send it to.

This gets converted to an array of raw pointers when passed through the FFI boundary.

Implementations

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

pub fn new<T>(data: &'a [Option<&'a T>]) -> Self[src]

Trait Implementations

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

impl<'a, 'b> TryInto<References<'b>> 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 References<'a>

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

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

impl<'a> Unpin for References<'a>

impl<'a> UnwindSafe for References<'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.