pub struct SequenceHash(pub u64);Expand description
Position-aware block hash from backend (sequence hash).
Matches the block_hash field in KvBlock proto (i64, bitwise reinterpreted as u64).
Different from ContentHash because it encodes the full prefix history.
Tuple Fields§
§0: u64Trait Implementations§
Source§impl Clone for SequenceHash
impl Clone for SequenceHash
Source§fn clone(&self) -> SequenceHash
fn clone(&self) -> SequenceHash
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 SequenceHash
Source§impl Debug for SequenceHash
impl Debug for SequenceHash
impl Eq for SequenceHash
Source§impl From<i64> for SequenceHash
impl From<i64> for SequenceHash
Source§impl From<u64> for SequenceHash
impl From<u64> for SequenceHash
Source§impl Hash for SequenceHash
impl Hash for SequenceHash
Source§impl Ord for SequenceHash
impl Ord for SequenceHash
Source§fn cmp(&self, other: &SequenceHash) -> Ordering
fn cmp(&self, other: &SequenceHash) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for SequenceHash
impl PartialEq for SequenceHash
Source§fn eq(&self, other: &SequenceHash) -> bool
fn eq(&self, other: &SequenceHash) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for SequenceHash
impl PartialOrd for SequenceHash
impl StructuralPartialEq for SequenceHash
Auto Trait Implementations§
impl Freeze for SequenceHash
impl RefUnwindSafe for SequenceHash
impl Send for SequenceHash
impl Sync for SequenceHash
impl Unpin for SequenceHash
impl UnsafeUnpin for SequenceHash
impl UnwindSafe for SequenceHash
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