Struct internal_iterator::BreakValue
source · pub struct BreakValue<'a> { /* private fields */ }
Expand description
A helper type used in from_fn
.
It represents a value that the iterator is stopped with, which from_fn
closure needs to pass back to the caller. It has a lifetime parameter to
prevent values from different scopes from getting mixed up (i.e. if
from_fn
is used within another from_fn
).
Auto Trait Implementations§
impl<'a> RefUnwindSafe for BreakValue<'a>
impl<'a> Send for BreakValue<'a>
impl<'a> Sync for BreakValue<'a>
impl<'a> Unpin for BreakValue<'a>
impl<'a> UnwindSafe for BreakValue<'a>
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