pub struct SegmentRangeInclusive { /* private fields */ }
Expand description
Helper type to handle segment transaction and block INCLUSIVE ranges.
They can be modified on a hot loop, which makes the std::ops::RangeInclusive
a poor fit.
Implementations§
Trait Implementations§
Source§impl Clone for SegmentRangeInclusive
impl Clone for SegmentRangeInclusive
Source§fn clone(&self) -> SegmentRangeInclusive
fn clone(&self) -> SegmentRangeInclusive
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 SegmentRangeInclusive
impl Debug for SegmentRangeInclusive
Source§impl<'de> Deserialize<'de> for SegmentRangeInclusive
impl<'de> Deserialize<'de> for SegmentRangeInclusive
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 Display for SegmentRangeInclusive
impl Display for SegmentRangeInclusive
Source§impl From<&SegmentRangeInclusive> for RangeInclusive<u64>
impl From<&SegmentRangeInclusive> for RangeInclusive<u64>
Source§fn from(value: &SegmentRangeInclusive) -> Self
fn from(value: &SegmentRangeInclusive) -> Self
Converts to this type from the input type.
Source§impl From<RangeInclusive<u64>> for SegmentRangeInclusive
impl From<RangeInclusive<u64>> for SegmentRangeInclusive
Source§fn from(value: RangeInclusive<u64>) -> Self
fn from(value: RangeInclusive<u64>) -> Self
Converts to this type from the input type.
Source§impl From<SegmentRangeInclusive> for RangeInclusive<u64>
impl From<SegmentRangeInclusive> for RangeInclusive<u64>
Source§fn from(value: SegmentRangeInclusive) -> Self
fn from(value: SegmentRangeInclusive) -> Self
Converts to this type from the input type.
Source§impl Hash for SegmentRangeInclusive
impl Hash for SegmentRangeInclusive
Source§impl PartialEq for SegmentRangeInclusive
impl PartialEq for SegmentRangeInclusive
Source§impl Serialize for SegmentRangeInclusive
impl Serialize for SegmentRangeInclusive
impl Copy for SegmentRangeInclusive
impl Eq for SegmentRangeInclusive
impl StructuralPartialEq for SegmentRangeInclusive
Auto Trait Implementations§
impl Freeze for SegmentRangeInclusive
impl RefUnwindSafe for SegmentRangeInclusive
impl Send for SegmentRangeInclusive
impl Sync for SegmentRangeInclusive
impl Unpin for SegmentRangeInclusive
impl UnwindSafe for SegmentRangeInclusive
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 16 bytes