pub struct ElasticGuard<'a, T: Stretchable<'a>> { /* private fields */ }
Expand description
A guard representing a loan of some stretchable value to some Elastic
. On drop, it expires
the loan, borrowing the elastic’s inner slot mutably (panicking if not possible) and
Leaking a value of this type can cause undefined behavior. You normally do not want to
manipulate these directly. Prefer ScopeArena
and ScopeGuard
whenever possible.
Implementations§
Source§impl<'a, T: Stretchable<'a>> ElasticGuard<'a, T>
impl<'a, T: Stretchable<'a>> ElasticGuard<'a, T>
Trait Implementations§
Source§impl<'a, T: Stretchable<'a>> Debug for ElasticGuard<'a, T>
impl<'a, T: Stretchable<'a>> Debug for ElasticGuard<'a, T>
Source§impl<'a, T: Stretchable<'a>> Drop for ElasticGuard<'a, T>
impl<'a, T: Stretchable<'a>> Drop for ElasticGuard<'a, T>
Auto Trait Implementations§
impl<'a, T> Freeze for ElasticGuard<'a, T>
impl<'a, T> !RefUnwindSafe for ElasticGuard<'a, T>
impl<'a, T> Send for ElasticGuard<'a, T>
impl<'a, T> Sync for ElasticGuard<'a, T>
impl<'a, T> Unpin for ElasticGuard<'a, T>
impl<'a, T> !UnwindSafe for ElasticGuard<'a, 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