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.
Implementations§
Trait Implementations§
source§impl Clone for OffsetStride
impl Clone for OffsetStride
source§fn clone(&self) -> OffsetStride
fn clone(&self) -> OffsetStride
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§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
source§impl<'de> Deserialize<'de> for OffsetStride
impl<'de> Deserialize<'de> for OffsetStride
source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<OffsetStride, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<OffsetStride, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for OffsetStride
impl PartialEq for OffsetStride
source§impl Serialize for OffsetStride
impl Serialize for OffsetStride
source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Copy for OffsetStride
impl Eq for OffsetStride
impl StructuralPartialEq for OffsetStride
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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.