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<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