Struct take_mut::scoped::Hole [] [src]

pub struct Hole<'c, 'm, T: 'm, F: FnOnce() -> T> { /* fields omitted */ }

A Hole<'c, 'm, T, F> represents an unfilled &'m mut T which must be filled before the end of the Scope with lifetime 'c and recovery closure F.

An unfilled Hole<'c, 'm, T, F> that is destructed will try to useF` to fill the hole.

If the scope ends without the Hole being filled, the program will std::process::abort().


impl<'c, 'm, T: 'm, F: FnOnce() -> T> Hole<'c, 'm, T, F>


Fills the Hole.

Trait Implementations

impl<'c, 'm, T: 'm, F: FnOnce() -> T> Drop for Hole<'c, 'm, T, F>


Executes the destructor for this type. Read more

Auto Trait Implementations

impl<'c, 'm, T, F> !Send for Hole<'c, 'm, T, F>

impl<'c, 'm, T, F> !Sync for Hole<'c, 'm, T, F>