Struct sgx_alloc::alignalloc::AlignAlloc
source · pub struct AlignAlloc;
Implementations§
source§impl AlignAlloc
impl AlignAlloc
pub unsafe fn alloc(&self, layout: Layout) -> Result<NonNull<u8>, AlighAllocErr>
pub unsafe fn alloc_zeroed( &self, layout: Layout ) -> Result<NonNull<u8>, AlighAllocErr>
pub unsafe fn alloc_with_req( &self, layout: Layout, align_req: &[AlignReq] ) -> Result<NonNull<u8>, AlighAllocErr>
pub unsafe fn alloc_with_req_zeroed( &self, layout: Layout, align_req: &[AlignReq] ) -> Result<NonNull<u8>, AlighAllocErr>
pub unsafe fn alloc_with_pad_align( &self, layout: Layout, align_layout: Layout ) -> Result<NonNull<u8>, AlighAllocErr>
pub unsafe fn alloc_with_pad_align_zeroed( &self, layout: Layout, align_layout: Layout ) -> Result<NonNull<u8>, AlighAllocErr>
pub unsafe fn dealloc(&self, ptr: NonNull<u8>, layout: Layout)
pub fn pad_align_to( &self, layout: Layout, align_req: &[AlignReq] ) -> Result<AlignLayout, AlignLayoutErr>
Auto Trait Implementations§
impl RefUnwindSafe for AlignAlloc
impl Send for AlignAlloc
impl Sync for AlignAlloc
impl Unpin for AlignAlloc
impl UnwindSafe for AlignAlloc
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more