pub type SomeGuard<'a, T> = OkGuard<'a, T, ()>;
Expand description
A guard that ensures that niche determinants are reinserted if the Some
variant of an Option
is re-established after it may have been mutated.
When dropped, this guard ensures that the result’s determinant is properly set. Failing to drop this guard may result in undefined behaviour.
Aliased Type§
struct SomeGuard<'a, T> { /* private fields */ }