pub struct Scope<'s> { /* private fields */ }
Expand description

Represents a scope within which, it is possible to take a T from a &mut T as long as the &mut T outlives the scope.

Implementations

Takes a (T, Hole<'c, 'm, T, F>) from an &'m mut T.

If the Hole is dropped without being filled, either due to panic or forgetting to fill, will run the recovery function to obtain a T to fill itself with.

Takes a (T, Hole<'c, 'm, T, F>) from an &'m mut T.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.