pub struct SquashedOffset(pub u8);Expand description
Indicates which version of a Table is referred to by a RowPointer.
Currently, SquashedOffset has two meaningful values,
SquashedOffset::TX_STATE and SquashedOffset::COMMITTED_STATE,
which refer to the TX scratchpad and the committed state respectively.
In the future, SquashedOffset will be extended to capture
which savepoint within a transaction the pointer refers to,
or which committed-unsquashed preceding transaction.
Tuple Fields§
§0: u8Implementations§
Source§impl SquashedOffset
impl SquashedOffset
Sourcepub const COMMITTED_STATE: Self
pub const COMMITTED_STATE: Self
The SquashedOffset for the committed (squashed) state.
Sourcepub const fn is_tx_state(self) -> bool
pub const fn is_tx_state(self) -> bool
Does this SquahsedOffset refer to the TX scratchpad?
Sourcepub const fn is_committed_state(self) -> bool
pub const fn is_committed_state(self) -> bool
Does this SquashedOffset refer to the committed (squashed) state?
Trait Implementations§
Source§impl Clone for SquashedOffset
impl Clone for SquashedOffset
Source§fn clone(&self) -> SquashedOffset
fn clone(&self) -> SquashedOffset
Returns a duplicate 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 SquashedOffset
impl Debug for SquashedOffset
Source§impl MemoryUsage for SquashedOffset
impl MemoryUsage for SquashedOffset
Source§fn heap_usage(&self) -> usize
fn heap_usage(&self) -> usize
The heap memory usage of this type. The default implementation returns 0.
Source§impl PartialEq for SquashedOffset
impl PartialEq for SquashedOffset
impl Copy for SquashedOffset
impl Eq for SquashedOffset
impl StructuralPartialEq for SquashedOffset
Auto Trait Implementations§
impl Freeze for SquashedOffset
impl RefUnwindSafe for SquashedOffset
impl Send for SquashedOffset
impl Sync for SquashedOffset
impl Unpin for SquashedOffset
impl UnwindSafe for SquashedOffset
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more