pub struct OptionVec<T> { /* private fields */ }Expand description
A collection of option values with batch operations.
Implementations§
Source§impl<T> OptionVec<T>
impl<T> OptionVec<T>
Sourcepub fn collect_some(self) -> Vec<T>
pub fn collect_some(self) -> Vec<T>
Collect only the Some values.
Sourcepub fn count_some(&self) -> usize
pub fn count_some(&self) -> usize
Count the Some values.
Sourcepub fn count_none(&self) -> usize
pub fn count_none(&self) -> usize
Count the None values.
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for OptionVec<T>
impl<T> RefUnwindSafe for OptionVec<T>where
T: RefUnwindSafe,
impl<T> Send for OptionVec<T>where
T: Send,
impl<T> Sync for OptionVec<T>where
T: Sync,
impl<T> Unpin for OptionVec<T>where
T: Unpin,
impl<T> UnsafeUnpin for OptionVec<T>
impl<T> UnwindSafe for OptionVec<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