pub struct First<T>(pub Option<T>);
Expand description
最初に出現するSome
を返す演算。
Tuple Fields§
§0: Option<T>
Trait Implementations§
impl<T> Associative for First<T>
impl<T: Copy> Copy for First<T>
impl<T: Eq> Eq for First<T>
impl<T> Idempotence for First<T>
impl<T> Set for First<T>
impl<T> StructuralPartialEq for First<T>
Auto Trait Implementations§
impl<T> Freeze for First<T>where
T: Freeze,
impl<T> RefUnwindSafe for First<T>where
T: RefUnwindSafe,
impl<T> Send for First<T>where
T: Send,
impl<T> Sync for First<T>where
T: Sync,
impl<T> Unpin for First<T>where
T: Unpin,
impl<T> UnwindSafe for First<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