pub struct Disposable(/* private fields */);
Implementations§
Source§impl Disposable
impl Disposable
pub fn new<T>(value: T) -> Disposablewhere
T: Drop + 'static,
Auto Trait Implementations§
impl Freeze for Disposable
impl !RefUnwindSafe for Disposable
impl !Send for Disposable
impl !Sync for Disposable
impl Unpin for Disposable
impl !UnwindSafe for Disposable
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