Struct rustc_data_structures::OnDrop
source · pub struct OnDrop<F: FnOnce()>(pub(crate) Option<F>);
Tuple Fields§
§0: Option<F>
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<F> RefUnwindSafe for OnDrop<F>where F: RefUnwindSafe,
impl<F> Send for OnDrop<F>where F: Send,
impl<F> Sync for OnDrop<F>where F: Sync,
impl<F> Unpin for OnDrop<F>where F: Unpin,
impl<F> UnwindSafe for OnDrop<F>where F: 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
impl<'a, T> Captures<'a> for Twhere T: ?Sized,
Layout§
Note: Unable to compute type layout, possibly due to this type having generic parameters. Layout can only be computed for concrete, fully-instantiated types.