Struct below_store::cursor::StoreOffset
source · pub struct StoreOffset { /* private fields */ }Expand description
Offset of a StoreCursor.
Implementations§
source§impl 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§
source§impl Clone for StoreOffset
impl Clone for StoreOffset
source§fn clone(&self) -> StoreOffset
fn clone(&self) -> StoreOffset
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 StoreOffset
impl Debug for StoreOffset
source§impl Default for StoreOffset
impl Default for StoreOffset
source§fn default() -> StoreOffset
fn default() -> StoreOffset
Returns the “default value” for a type. Read more
source§impl PartialEq<StoreOffset> for StoreOffset
impl PartialEq<StoreOffset> for StoreOffset
source§fn eq(&self, other: &StoreOffset) -> bool
fn eq(&self, other: &StoreOffset) -> bool
This method tests for
self and other values to be equal, and is used
by ==.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§
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