Struct take_mut::scoped::Hole [−][src]
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 use
F` to fill the hole.
If the scope ends without the Hole
being filled, the program will std::process::abort()
.
Implementations
impl<'c, 'm, T: 'm, F: FnOnce() -> T> Hole<'c, 'm, T, F>
[src]
Trait Implementations
Auto Trait Implementations
impl<'c, 'm, T, F> !RefUnwindSafe for Hole<'c, 'm, T, F>
impl<'c, 'm, T, F> !Send for Hole<'c, 'm, T, F>
impl<'c, 'm, T, F> !Sync for Hole<'c, 'm, T, F>
impl<'c, 'm, T, F> Unpin for Hole<'c, 'm, T, F> where
F: Unpin,
F: Unpin,
impl<'c, 'm, T, F> !UnwindSafe for Hole<'c, 'm, T, F>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,