[][src]Struct safer_ffi::Vec

#[repr(C)]pub struct Vec<T> { /* fields omitted */ }

Same as Vec<T>, but with guaranteed #[repr(C)] layout

C Layout

Implementations

impl<T> Vec<T>[src]

pub fn as_ref(&self) -> slice_ref<T>[src]

pub fn as_mut(&mut self) -> slice_mut<T>[src]

impl<T> Vec<T>[src]

pub const EMPTY: Self[src]

pub fn with_rust_mut<R>(&mut self, f: impl FnOnce(&mut Vec<T>) -> R) -> R[src]

Trait Implementations

impl<T: Debug + ReprC> Debug for Vec<T>[src]

impl<T> Deref for Vec<T>[src]

type Target = [T]

The resulting type after dereferencing.

impl<T> DerefMut for Vec<T>[src]

impl<T> Drop for Vec<T>[src]

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

impl<T> Into<Vec<T>> for Vec<T>[src]

impl<T> ReprC for Vec<T> where
    NonNullOwned<T>: ReprC,
    <NonNullOwned<T> as ReprC>::CLayout: CType<OPAQUE_KIND = Concrete>,
    usize: ReprC,
    <usize as ReprC>::CLayout: CType<OPAQUE_KIND = Concrete>,
    usize: ReprC,
    <usize as ReprC>::CLayout: CType<OPAQUE_KIND = Concrete>,
    T: ReprC
[src]

type CLayout = Vec_Layout<T>

The CType having the same layout as Self.

impl<T> Send for Vec<T> where
    Vec<T>: Send
[src]

impl<T> Sync for Vec<T> where
    Vec<T>: Sync
[src]

Auto Trait Implementations

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

impl<T> Unpin for Vec<T> where
    T: Unpin

impl<T> UnwindSafe for Vec<T> where
    T: RefUnwindSafe + UnwindSafe

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.