[−][src]Struct sgx_alloc::alignbox::AlignBox
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]
F: Fn(&mut T),
pub fn heap_init_with_align<F>(initialize: F, align: usize) -> Option<Self> where
F: Fn(&mut T),
[src]
F: Fn(&mut T),
pub fn heap_init_with_req<F>(
initialize: F,
align: usize,
data: &[AlignReq]
) -> Option<Self> where
F: Fn(&mut T),
[src]
initialize: F,
align: usize,
data: &[AlignReq]
) -> Option<Self> where
F: Fn(&mut T),
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]
fn borrow_mut(&mut self) -> &mut 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]
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,
T: Send,
impl<T> Sync for AlignBox<T> where
T: Sync,
T: Sync,
impl<T> Unpin for AlignBox<T> where
T: Unpin,
T: Unpin,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,