pub enum Probe<T> {
Found(T),
Next,
Stop,
}Expand description
What a probe found at one value of the sequence.
Variants§
Found(T)
It decides: the search ends with this.
Next
It does not: go on to the next value.
Stop
It does not, and no later value will: the search ends with nothing.
Auto Trait Implementations§
impl<T> Freeze for Probe<T>where
T: Freeze,
impl<T> RefUnwindSafe for Probe<T>where
T: RefUnwindSafe,
impl<T> Send for Probe<T>where
T: Send,
impl<T> Sync for Probe<T>where
T: Sync,
impl<T> Unpin for Probe<T>where
T: Unpin,
impl<T> UnsafeUnpin for Probe<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for Probe<T>where
T: 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