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