pub struct OrdRangeInc(pub RangeInclusive<u64>);
Expand description
Wrapper around RangeInclusive<u64>
to implement Ord
and PartialOrd
.
Tuple Fields§
§0: RangeInclusive<u64>
Implementations§
Source§impl OrdRangeInc
impl OrdRangeInc
pub const MIN_SIZE: u64 = 10u64
pub fn new(start: u64, end: u64) -> Self
pub fn new_bound(bound: u64) -> Self
pub fn len(&self) -> u64
pub fn is_empty(&self) -> bool
pub fn start(&self) -> &u64
pub fn end(&self) -> &u64
pub fn contains(&self, item: &u64) -> bool
pub fn is_bound(&self) -> bool
Trait Implementations§
Source§impl Clone for OrdRangeInc
impl Clone for OrdRangeInc
Source§fn clone(&self) -> OrdRangeInc
fn clone(&self) -> OrdRangeInc
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 OrdRangeInc
impl Debug for OrdRangeInc
Source§impl<'de> Deserialize<'de> for OrdRangeInc
impl<'de> Deserialize<'de> for OrdRangeInc
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<RangeInclusive<u64>> for OrdRangeInc
impl From<RangeInclusive<u64>> for OrdRangeInc
Source§fn from(range: RangeInclusive<u64>) -> Self
fn from(range: RangeInclusive<u64>) -> Self
Converts to this type from the input type.
Source§impl Ord for OrdRangeInc
impl Ord for OrdRangeInc
Source§impl PartialEq for OrdRangeInc
impl PartialEq for OrdRangeInc
Source§impl PartialOrd for OrdRangeInc
impl PartialOrd for OrdRangeInc
Source§impl RangeBounds<u64> for OrdRangeInc
impl RangeBounds<u64> for OrdRangeInc
Source§impl Serialize for OrdRangeInc
impl Serialize for OrdRangeInc
impl Eq for OrdRangeInc
Auto Trait Implementations§
impl Freeze for OrdRangeInc
impl RefUnwindSafe for OrdRangeInc
impl Send for OrdRangeInc
impl Sync for OrdRangeInc
impl Unpin for OrdRangeInc
impl UnwindSafe for OrdRangeInc
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