[][src]Struct sgx_alloc::alignbox::AlignBox

pub struct AlignBox<T> { /* fields omitted */ }

Methods

impl<T> AlignBox<T>[src]

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

Gets a raw pointer to the start of the allocation. Note that this is Unique::empty() if cap = 0 or T is zero-sized. In the former case, you must be careful.

impl<T> AlignBox<T>[src]

pub fn new() -> Option<Self>[src]

pub fn new_with_align(align: usize) -> Option<Self>[src]

pub fn new_with_req(align: usize, align_req: &[AlignReq]) -> Option<Self>[src]

impl<T> AlignBox<T>[src]

pub fn heap_init<F>(initialize: F) -> Option<Self> where
    F: Fn(&mut T), 
[src]

pub fn heap_init_with_align<F>(initialize: F, align: usize) -> Option<Self> where
    F: Fn(&mut T), 
[src]

pub fn heap_init_with_req<F>(
    initialize: F,
    align: usize,
    data: &[AlignReq]
) -> Option<Self> where
    F: Fn(&mut T), 
[src]

Trait Implementations

impl<T> AsMut<T> for AlignBox<T>[src]

impl<T> AsRef<T> for AlignBox<T>[src]

impl<T> Borrow<T> for AlignBox<T>[src]

impl<T> BorrowMut<T> for AlignBox<T>[src]

impl<T: Clone> Clone for AlignBox<T>[src]

impl<T: Debug> Debug for AlignBox<T>[src]

impl<T> Deref for AlignBox<T>[src]

type Target = T

The resulting type after dereferencing.

impl<T> DerefMut for AlignBox<T>[src]

impl<T: Display> Display for AlignBox<T>[src]

impl<T> Drop for AlignBox<T>[src]

Auto Trait Implementations

impl<T> Send for AlignBox<T> where
    T: Send

impl<T> Sync for AlignBox<T> where
    T: Sync

impl<T> Unpin for AlignBox<T> where
    T: Unpin

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> ToString for T where
    T: Display + ?Sized
[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.