#[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>::CLayoutlen: <usize as ReprC>::CLayout_lt: <PhantomData<&'lt ()> as ReprC>::CLayout

Trait Implementations

A short-name description of the type, mainly used to fill “placeholders” such as when monomorphising generics structs or arrays. Read more

Necessary one-time code for CType::c_var() to make sense. Read more

The core method of the trait: it provides the implementation to be used by CType::c_var, by bringing a Formatter in scope. Read more

Convenience function for callers / users of types implementing CType. Read more

Convenience function for callers / users of types implementing CType. Read more

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

The CType having the same layout as Self.

Sanity checks that can be performed on an instance of the CType layout. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.