pub struct EitherPartitionSm<L, R> {
pub lefts: Vec<L>,
pub rights: Vec<R>,
}Expand description
Partition result for Either (Sum) type, holding separated lefts and rights.
Fields§
§lefts: Vec<L>All left values.
rights: Vec<R>All right values.
Implementations§
Source§impl<L, R> EitherPartitionSm<L, R>
impl<L, R> EitherPartitionSm<L, R>
Sourcepub fn left_count(&self) -> usize
pub fn left_count(&self) -> usize
Left count.
Sourcepub fn right_count(&self) -> usize
pub fn right_count(&self) -> usize
Right count.
Auto Trait Implementations§
impl<L, R> Freeze for EitherPartitionSm<L, R>
impl<L, R> RefUnwindSafe for EitherPartitionSm<L, R>where
L: RefUnwindSafe,
R: RefUnwindSafe,
impl<L, R> Send for EitherPartitionSm<L, R>
impl<L, R> Sync for EitherPartitionSm<L, R>
impl<L, R> Unpin for EitherPartitionSm<L, R>
impl<L, R> UnsafeUnpin for EitherPartitionSm<L, R>
impl<L, R> UnwindSafe for EitherPartitionSm<L, R>where
L: UnwindSafe,
R: 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