pub struct BoxAllocator<T>(PhantomData<fn() -> T>);Tuple Fields§
§0: PhantomData<fn() -> T>Trait Implementations§
Source§impl<T> Allocator<T> for BoxAllocator<T>
impl<T> Allocator<T> for BoxAllocator<T>
Source§impl<T: Debug> Debug for BoxAllocator<T>
impl<T: Debug> Debug for BoxAllocator<T>
Auto Trait Implementations§
impl<T> Freeze for BoxAllocator<T>
impl<T> RefUnwindSafe for BoxAllocator<T>
impl<T> Send for BoxAllocator<T>
impl<T> Sync for BoxAllocator<T>
impl<T> Unpin for BoxAllocator<T>
impl<T> UnwindSafe for BoxAllocator<T>
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