[][src]Struct safer_ffi::slice::slice_raw_Layout

#[repr(C)]pub struct slice_raw_Layout<T> where
    NonNull<T>: ReprC,
    usize: ReprC,
    T: ReprC
{ pub ptr: <NonNull<T> as ReprC>::CLayout, pub len: <usize as ReprC>::CLayout, }

Fields

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

Pointer to the first element (if any).

len: <usize as ReprC>::CLayout

Element count

Trait Implementations

impl<T> CType for slice_raw<T> where
    <NonNull<T> as ReprC>::CLayout: CType,
    <usize as ReprC>::CLayout: CType,
    T: ReprC,
    NonNull<T>: ReprC,
    usize: ReprC,
    T: ReprC
[src]

type OPAQUE_KIND = Concrete

impl<T> Clone for slice_raw<T> where
    NonNull<T>: ReprC,
    usize: ReprC,
    T: ReprC
[src]

impl<T> Copy for slice_raw<T> where
    NonNull<T>: ReprC,
    usize: ReprC,
    T: ReprC
[src]

impl<T> ReprC for slice_raw<T> where
    NonNull<T>: ReprC,
    usize: ReprC,
    T: ReprC
[src]

type CLayout = Self

The CType having the same layout as Self.

Auto Trait Implementations

impl<T> !RefUnwindSafe for slice_raw<T>

impl<T> !Send for slice_raw<T>

impl<T> !Sync for slice_raw<T>

impl<T> !Unpin for slice_raw<T>

impl<T> !UnwindSafe for slice_raw<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.