pub struct GrabFirst<T> {
pub first: Option<T>,
}Expand description
The first value given to the option
GrabFirst will return the value of the first occurence of the option
If the option is not mentionned, its field first will be None
Fields§
§first: Option<T>Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for GrabFirst<T>where
T: Freeze,
impl<T> RefUnwindSafe for GrabFirst<T>where
T: RefUnwindSafe,
impl<T> Send for GrabFirst<T>where
T: Send,
impl<T> Sync for GrabFirst<T>where
T: Sync,
impl<T> Unpin for GrabFirst<T>where
T: Unpin,
impl<T> UnwindSafe for GrabFirst<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