[][src]Struct ffishim::library::FFIVec

#[repr(C)]pub struct FFIVec<T> {
    pub ptr: *mut T,
    pub len: usize,
    pub cap: usize,
}

A C-compatible vector structure to replace rust's Vec in the shim layer.

Fields

ptr: *mut Tlen: usizecap: usize

Implementations

impl<T> FFIVec<T>[src]

pub fn from(vec: Vec<T>) -> Self[src]

pub fn into_vec(array: Self) -> Vec<T>[src]

Auto Trait Implementations

impl<T> RefUnwindSafe for FFIVec<T> where
    T: RefUnwindSafe

impl<T> !Send for FFIVec<T>

impl<T> !Sync for FFIVec<T>

impl<T> Unpin for FFIVec<T>

impl<T> UnwindSafe for FFIVec<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, 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.