[][src]Struct sunrise_kernel::mem::FatPtr

#[repr(C)]pub struct FatPtr {
    pub data: usize,
    pub len: usize,
}

Internal rust representation of a DST pointer.

Note that this is necessary due to the lack of a real DST type in the rust standard library. See https://github.com/rust-lang/rfcs/pull/2580

Fields

data: usize

A pointer to the underlying slice.

len: usize

The length of the slice, in number of elements.

Trait Implementations

impl Debug for FatPtr[src]

Auto Trait Implementations

impl RefUnwindSafe for FatPtr

impl Send for FatPtr

impl Sync for FatPtr

impl Unpin for FatPtr

impl UnwindSafe for FatPtr

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