Struct below_store::cursor::StoreOffset
source · [−]pub struct StoreOffset { /* private fields */ }Expand description
Offset of a StoreCursor.
Implementations
sourceimpl StoreOffset
impl StoreOffset
sourcepub fn new(shard: Option<u64>, index_offset: Option<usize>) -> Self
pub fn new(shard: Option<u64>, index_offset: Option<usize>) -> Self
Shard and index offset are trimmed to multiples of SHARD_TIME and INDEX_ENTRY_SIZE respectively. Index offset is ignored if shard is None.
pub fn get_shard(&self) -> Option<u64>
pub fn get_index_offset(&self) -> Option<usize>
Trait Implementations
sourceimpl Clone for StoreOffset
impl Clone for StoreOffset
sourcefn clone(&self) -> StoreOffset
fn clone(&self) -> StoreOffset
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for StoreOffset
impl Debug for StoreOffset
sourceimpl Default for StoreOffset
impl Default for StoreOffset
sourcefn default() -> StoreOffset
fn default() -> StoreOffset
Returns the “default value” for a type. Read more
sourceimpl PartialEq<StoreOffset> for StoreOffset
impl PartialEq<StoreOffset> for StoreOffset
sourcefn eq(&self, other: &StoreOffset) -> bool
fn eq(&self, other: &StoreOffset) -> bool
impl StructuralPartialEq for StoreOffset
Auto Trait Implementations
impl RefUnwindSafe for StoreOffset
impl Send for StoreOffset
impl Sync for StoreOffset
impl Unpin for StoreOffset
impl UnwindSafe for StoreOffset
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more