pub struct CleanupScope {
pub resources: Vec<CleanupResource>,
pub finally: Option<Block>,
}Fields§
§resources: Vec<CleanupResource>§finally: Option<Block>Trait Implementations§
Source§impl Clone for CleanupScope
impl Clone for CleanupScope
Source§fn clone(&self) -> CleanupScope
fn clone(&self) -> CleanupScope
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for CleanupScope
impl RefUnwindSafe for CleanupScope
impl Send for CleanupScope
impl Sync for CleanupScope
impl Unpin for CleanupScope
impl UnsafeUnpin for CleanupScope
impl UnwindSafe for CleanupScope
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