pub struct First<T>(pub Option<T>);Tuple Fields§
§0: Option<T>Trait Implementations§
Source§impl<T> Extend<T> for First<T>
impl<T> Extend<T> for First<T>
Source§fn extend<I>(&mut self, iter: I)where
I: IntoIterator<Item = T>,
fn extend<I>(&mut self, iter: I)where
I: IntoIterator<Item = T>,
Extends a collection with the contents of an iterator. Read more
Source§fn extend_one(&mut self, item: T)
fn extend_one(&mut self, item: T)
🔬This is a nightly-only experimental API. (
extend_one)Extends a collection with exactly one element.
Source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
🔬This is a nightly-only experimental API. (
extend_one)Reserves capacity in a collection for the given number of additional elements. Read more
impl<T: PartialEq> StructuralPartialEq for First<T>
Auto Trait Implementations§
impl<T> Freeze for First<T>
impl<T> RefUnwindSafe for First<T>where
Option<T>: RefUnwindSafe,
impl<T> Send for First<T>
impl<T> Sync for First<T>
impl<T> Unpin for First<T>
impl<T> UnsafeUnpin for First<T>where
Option<T>: UnsafeUnpin,
impl<T> UnwindSafe for First<T>where
Option<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