pub enum Yield<O> {
Output(O),
Finished(O),
}Expand description
What a cursor’s next returns: an output, or the last one.
Variants§
Implementations§
Source§impl<O> Yield<O>
impl<O> Yield<O>
Sourcepub fn into_inner(self) -> O
pub fn into_inner(self) -> O
The output, either way.
Sourcepub fn is_finished(&self) -> bool
pub fn is_finished(&self) -> bool
Whether this was the last output.
Trait Implementations§
Auto Trait Implementations§
impl<O> Freeze for Yield<O>where
O: Freeze,
impl<O> RefUnwindSafe for Yield<O>where
O: RefUnwindSafe,
impl<O> Send for Yield<O>where
O: Send,
impl<O> Sync for Yield<O>where
O: Sync,
impl<O> Unpin for Yield<O>where
O: Unpin,
impl<O> UnsafeUnpin for Yield<O>where
O: UnsafeUnpin,
impl<O> UnwindSafe for Yield<O>where
O: UnwindSafe,
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