pub struct LogPosition {
pub slab_index: usize,
pub offset: usize,
}Expand description
Absolute position inside a unified log (slab index + byte offset).
Fields§
§slab_index: usize§offset: usizeTrait Implementations§
Source§impl Clone for LogPosition
impl Clone for LogPosition
Source§fn clone(&self) -> LogPosition
fn clone(&self) -> LogPosition
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for LogPosition
Source§impl Debug for LogPosition
impl Debug for LogPosition
impl Eq for LogPosition
Source§impl PartialEq for LogPosition
impl PartialEq for LogPosition
Source§fn eq(&self, other: &LogPosition) -> bool
fn eq(&self, other: &LogPosition) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for LogPosition
Auto Trait Implementations§
impl Freeze for LogPosition
impl RefUnwindSafe for LogPosition
impl Send for LogPosition
impl Sync for LogPosition
impl Unpin for LogPosition
impl UnsafeUnpin for LogPosition
impl UnwindSafe for LogPosition
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