pub struct AlignBox<T> { /* private fields */ }
Implementations
sourceimpl<T> AlignBox<T>
impl<T> AlignBox<T>
pub fn heap_init<F>(initialize: F) -> Option<AlignBox<T>>where
F: Fn(&mut T),
pub fn heap_init_with_align<F>(
initialize: F,
align: usize
) -> Option<AlignBox<T>>where
F: Fn(&mut T),
pub fn heap_init_with_req<F>(
initialize: F,
align: usize,
data: &[AlignReq]
) -> Option<AlignBox<T>>where
F: Fn(&mut T),
Trait Implementations
sourceimpl<T> BorrowMut<T> for AlignBox<T>
impl<T> BorrowMut<T> for AlignBox<T>
sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Auto Trait Implementations
impl<T> RefUnwindSafe for AlignBox<T>where
T: RefUnwindSafe,
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,
impl<T> UnwindSafe for AlignBox<T>where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more