pub enum ConsecutiveSegment {
Single(u32),
Range {
start: u32,
end: u32,
},
}Expand description
One collapsed segment from an ordered numeric sequence.
Variants§
Trait Implementations§
Source§impl Clone for ConsecutiveSegment
impl Clone for ConsecutiveSegment
Source§fn clone(&self) -> ConsecutiveSegment
fn clone(&self) -> ConsecutiveSegment
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 Debug for ConsecutiveSegment
impl Debug for ConsecutiveSegment
Source§impl PartialEq for ConsecutiveSegment
impl PartialEq for ConsecutiveSegment
Source§fn eq(&self, other: &ConsecutiveSegment) -> bool
fn eq(&self, other: &ConsecutiveSegment) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for ConsecutiveSegment
impl Eq for ConsecutiveSegment
impl StructuralPartialEq for ConsecutiveSegment
Auto Trait Implementations§
impl Freeze for ConsecutiveSegment
impl RefUnwindSafe for ConsecutiveSegment
impl Send for ConsecutiveSegment
impl Sync for ConsecutiveSegment
impl Unpin for ConsecutiveSegment
impl UnsafeUnpin for ConsecutiveSegment
impl UnwindSafe for ConsecutiveSegment
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§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<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.