pub struct ZeroizingAllocator<Alloc: GlobalAlloc>(pub Alloc);
Tuple Fields§
§0: Alloc
Trait Implementations§
Source§impl<T> GlobalAlloc for ZeroizingAllocator<T>where
T: GlobalAlloc,
impl<T> GlobalAlloc for ZeroizingAllocator<T>where
T: GlobalAlloc,
Source§unsafe fn alloc(&self, layout: Layout) -> *mut u8
unsafe fn alloc(&self, layout: Layout) -> *mut u8
Allocates memory as described by the given
layout
. Read moreAuto Trait Implementations§
impl<Alloc> Freeze for ZeroizingAllocator<Alloc>where
Alloc: Freeze,
impl<Alloc> RefUnwindSafe for ZeroizingAllocator<Alloc>where
Alloc: RefUnwindSafe,
impl<Alloc> Send for ZeroizingAllocator<Alloc>where
Alloc: Send,
impl<Alloc> Sync for ZeroizingAllocator<Alloc>where
Alloc: Sync,
impl<Alloc> Unpin for ZeroizingAllocator<Alloc>where
Alloc: Unpin,
impl<Alloc> UnwindSafe for ZeroizingAllocator<Alloc>where
Alloc: UnwindSafe,
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