pub enum BoundedLane<T> {
Absent,
Complete(Vec<T>),
Truncated {
items: Vec<T>,
omitted: usize,
},
}Expand description
A bounded observation lane, retaining the distinction between no lane, an observed empty lane, and an observed prefix whose tail was omitted.
Variants§
Absent
The scenario did not select this lane.
Complete(Vec<T>)
The complete ordered lane, including an observed empty lane.
Truncated
The ordered prefix retained when the lane exceeded its bound.
Implementations§
Source§impl<T> BoundedLane<T>
impl<T> BoundedLane<T>
Sourcepub fn capture(items: Vec<T>, limit: usize) -> BoundedLane<T>
pub fn capture(items: Vec<T>, limit: usize) -> BoundedLane<T>
Capture an explicitly selected lane under limit.
Trait Implementations§
Source§impl<T> Clone for BoundedLane<T>where
T: Clone,
impl<T> Clone for BoundedLane<T>where
T: Clone,
Source§fn clone(&self) -> BoundedLane<T>
fn clone(&self) -> BoundedLane<T>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<T> Debug for BoundedLane<T>where
T: Debug,
impl<T> Debug for BoundedLane<T>where
T: Debug,
impl<T> Eq for BoundedLane<T>where
T: Eq,
Source§impl<T> PartialEq for BoundedLane<T>where
T: PartialEq,
impl<T> PartialEq for BoundedLane<T>where
T: PartialEq,
impl<T> StructuralPartialEq for BoundedLane<T>where
T: PartialEq,
Auto Trait Implementations§
impl<T> Freeze for BoundedLane<T>
impl<T> RefUnwindSafe for BoundedLane<T>where
T: RefUnwindSafe,
impl<T> Send for BoundedLane<T>where
T: Send,
impl<T> Sync for BoundedLane<T>where
T: Sync,
impl<T> Unpin for BoundedLane<T>where
T: Unpin,
impl<T> UnsafeUnpin for BoundedLane<T>
impl<T> UnwindSafe for BoundedLane<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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more