pub struct LeakBox<T> {
ptr: *mut UnsafeCell<MaybeUninit<T>>,
len: usize,
}
Available on crate feature
use-std
only.Fields§
§ptr: *mut UnsafeCell<MaybeUninit<T>>
§len: usize
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for LeakBox<T>
impl<T> !RefUnwindSafe for LeakBox<T>
impl<T> !Send for LeakBox<T>
impl<T> !Sync for LeakBox<T>
impl<T> Unpin for LeakBox<T>
impl<T> !UnwindSafe for LeakBox<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