Struct safer_ffi::slice::slice_mut_Layout[][src]

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

Fields

ptr: <NonNullMut<T> as ReprC>::CLayoutlen: <usize as ReprC>::CLayout_lt: <PhantomData<&'lt ()> as ReprC>::CLayout

Trait Implementations

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

fn c_short_name_fmt(fmt: &mut Formatter<'_>) -> Result[src]

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

fn c_define_self(definer: &mut dyn Definer) -> Result<()>[src]

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

fn c_var_fmt(fmt: &mut Formatter<'_>, var_name: &str) -> Result[src]

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

type OPAQUE_KIND = Concrete

fn c_short_name() -> ImplDisplay<Self>[src]

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

fn c_var(var_name: &str) -> ImplDisplay<'_, Self>[src]

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

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

fn clone(&self) -> Self[src]

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

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

type CLayout = Self

The CType having the same layout as Self.

fn is_valid(_: &Self::CLayout) -> bool[src]

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

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

Auto Trait Implementations

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

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

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

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

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

Blanket Implementations

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

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<T> AsOut<T> for T where
    T: Copy
[src]

pub fn as_out(&'out mut self) -> Out<'out, T>[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

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

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

pub fn into(self) -> U[src]

Performs the conversion.

impl<T> ManuallyDropMut for T[src]

type Ret = ManuallyDrop<T>

pub fn manually_drop_mut(&'__ mut self) -> &'__ mut ManuallyDrop<T>[src]

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

type Owned = T

The resulting type after obtaining ownership.

pub fn to_owned(&self) -> T[src]

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

pub fn clone_into(&self, target: &mut T)[src]

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

recently added

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

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.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

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.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.