Struct commitlog::OffsetRange
[−]
[src]
pub struct OffsetRange(_, _);
Offset range of log append.
Methods
impl OffsetRange[src]
pub fn first(&self) -> Offset[src]
Starting offset of the range.
pub fn len(&self) -> usize[src]
Number of offsets within the range.
pub fn is_empty(&self) -> bool[src]
Boolean indicating whether the range has offsets.
ⓘImportant traits for OffsetRangeIterpub fn iter(&self) -> OffsetRangeIter[src]
ⓘImportant traits for OffsetRangeIter
Iterator containing all offsets within the offset range.
Trait Implementations
impl Copy for OffsetRange[src]
impl Clone for OffsetRange[src]
fn clone(&self) -> OffsetRange[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl PartialEq for OffsetRange[src]
fn eq(&self, __arg_0: &OffsetRange) -> bool[src]
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &OffsetRange) -> bool[src]
This method tests for !=.