[][src]Struct safer_ffi::slice::slice_ref_Layout

#[repr(C)]pub struct slice_ref_Layout<'lt, T> where
    NonNullRef<T>: ReprC,
    usize: ReprC,
    PhantomData<&'lt ()>: ReprC,
    T: ReprC,
    T: 'lt, 
{ pub ptr: <NonNullRef<T> as ReprC>::CLayout, pub len: <usize as ReprC>::CLayout, pub _lt: <PhantomData<&'lt ()> as ReprC>::CLayout, }

Fields

ptr: <NonNullRef<T> as ReprC>::CLayout

Pointer to the first element (if any).

len: <usize as ReprC>::CLayout

Element count

_lt: <PhantomData<&'lt ()> as ReprC>::CLayout

Trait Implementations

impl<'lt, T> CType for slice_ref<'lt, T> where
    <NonNullRef<T> as ReprC>::CLayout: CType,
    <usize as ReprC>::CLayout: CType,
    <PhantomData<&'lt ()> as ReprC>::CLayout: CType,
    T: ReprC,
    NonNullRef<T>: ReprC,
    usize: ReprC,
    PhantomData<&'lt ()>: ReprC,
    T: ReprC,
    T: 'lt, 
[src]

type OPAQUE_KIND = Concrete

impl<'lt, T> Clone for slice_ref<'lt, T> where
    NonNullRef<T>: ReprC,
    usize: ReprC,
    PhantomData<&'lt ()>: ReprC,
    T: ReprC,
    T: 'lt, 
[src]

impl<'lt, T> Copy for slice_ref<'lt, T> where
    NonNullRef<T>: ReprC,
    usize: ReprC,
    PhantomData<&'lt ()>: ReprC,
    T: ReprC,
    T: 'lt, 
[src]

impl<'lt, T> ReprC for slice_ref<'lt, T> where
    NonNullRef<T>: ReprC,
    usize: ReprC,
    PhantomData<&'lt ()>: ReprC,
    T: ReprC,
    T: 'lt, 
[src]

type CLayout = Self

The CType having the same layout as Self.

Auto Trait Implementations

impl<'lt, T> !RefUnwindSafe for slice_ref<'lt, T>

impl<'lt, T> !Send for slice_ref<'lt, T>

impl<'lt, T> !Sync for slice_ref<'lt, T>

impl<'lt, T> !Unpin for slice_ref<'lt, T>

impl<'lt, T> !UnwindSafe for slice_ref<'lt, T>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> AsOut<T> for T where
    T: Copy

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> ManuallyDropMut for T

type Ret = ManuallyDrop<T>

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.