[][src]Struct flips_sys::mem

#[repr(C)]pub struct mem {
    pub ptr: *mut u8,
    pub len: size_t,
}

The representation of a memory slice in the Flips API.

Equivalent to a slice, but without compile-time checks for mutability and ownership.

Fields

ptr: *mut u8len: size_t

Implementations

impl mem[src]

pub fn new(ptr: *mut u8, len: size_t) -> Self[src]

Trait Implementations

impl AsRef<[u8]> for mem[src]

impl Clone for mem[src]

impl Copy for mem[src]

impl Debug for mem[src]

impl Default for mem[src]

Auto Trait Implementations

impl RefUnwindSafe for mem

impl !Send for mem

impl !Sync for mem

impl Unpin for mem

impl UnwindSafe for mem

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> 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.