Enum timely_container::flatcontainer::impls::offsets::OffsetStride
source · pub enum OffsetStride {
Empty,
Zero,
Striding(usize, usize),
Saturated(usize, usize, usize),
}
Expand description
A container for offsets that can represent strides of offsets.
Does not implement OffsetContainer
because it cannot accept arbitrary pushes.
Variants§
Empty
No push has occurred.
Zero
Pushed a single 0.
Striding(usize, usize)
Striding(stride, count)
: count
many steps of stride stride
have been pushed.
Saturated(usize, usize, usize)
Saturated(stride, count, reps)
: count
many steps of stride stride
, followed by
reps
repetitions of the last element have been pushed.
Trait Implementations§
source§impl Debug for OffsetStride
impl Debug for OffsetStride
source§impl Default for OffsetStride
impl Default for OffsetStride
source§fn default() -> OffsetStride
fn default() -> OffsetStride
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for OffsetStride
impl RefUnwindSafe for OffsetStride
impl Send for OffsetStride
impl Sync for OffsetStride
impl Unpin for OffsetStride
impl UnwindSafe for OffsetStride
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
source§impl<R, O, T> CopyOnto<ConsecutiveOffsetPairs<R, O>> for T
impl<R, O, T> CopyOnto<ConsecutiveOffsetPairs<R, O>> for T
source§fn copy_onto(
self,
target: &mut ConsecutiveOffsetPairs<R, O>
) -> <ConsecutiveOffsetPairs<R, O> as Region>::Index
fn copy_onto( self, target: &mut ConsecutiveOffsetPairs<R, O> ) -> <ConsecutiveOffsetPairs<R, O> as Region>::Index
Copy self into the target container, returning an index that allows to
look up the corresponding read item.