pub struct CanonicalRowKey { /* private fields */ }Expand description
Canonical lexicographically ordered primary row key.
Implementations§
Source§impl CanonicalRowKey
impl CanonicalRowKey
Sourcepub const fn new(table_id: u32, row_id: u64) -> Self
pub const fn new(table_id: u32, row_id: u64) -> Self
Builds a canonical primary key from a table and row identity.
Sourcepub fn decode(encoded: &[u8]) -> Result<Self, RowKeyRangeError>
pub fn decode(encoded: &[u8]) -> Result<Self, RowKeyRangeError>
Decodes exactly the canonical primary-row-key format.
Sourcepub fn encode(self) -> Vec<u8> ⓘ
pub fn encode(self) -> Vec<u8> ⓘ
Serializes to the canonical bytes shared by SQL and cluster storage.
Trait Implementations§
Source§impl Clone for CanonicalRowKey
impl Clone for CanonicalRowKey
Source§fn clone(&self) -> CanonicalRowKey
fn clone(&self) -> CanonicalRowKey
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 CanonicalRowKey
Source§impl Debug for CanonicalRowKey
impl Debug for CanonicalRowKey
impl Eq for CanonicalRowKey
Source§impl Hash for CanonicalRowKey
impl Hash for CanonicalRowKey
Source§impl Ord for CanonicalRowKey
impl Ord for CanonicalRowKey
Source§fn cmp(&self, other: &CanonicalRowKey) -> Ordering
fn cmp(&self, other: &CanonicalRowKey) -> 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 CanonicalRowKey
impl PartialEq for CanonicalRowKey
Source§impl PartialOrd for CanonicalRowKey
impl PartialOrd for CanonicalRowKey
impl StructuralPartialEq for CanonicalRowKey
Auto Trait Implementations§
impl Freeze for CanonicalRowKey
impl RefUnwindSafe for CanonicalRowKey
impl Send for CanonicalRowKey
impl Sync for CanonicalRowKey
impl Unpin for CanonicalRowKey
impl UnsafeUnpin for CanonicalRowKey
impl UnwindSafe for CanonicalRowKey
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