pub struct IndexEntryKey(/* private fields */);Expand description
A complete canonical local-index entry key.
Implementations§
Source§impl IndexEntryKey
impl IndexEntryKey
Sourcepub fn new(bytes: Vec<u8>) -> Result<Self, KeyBytesError>
pub fn new(bytes: Vec<u8>) -> Result<Self, KeyBytesError>
Validates a key’s purpose/version envelope and hard size bounds.
Component-level validation requires the exact compiler-produced schema.
Sourcepub fn from_bytes(bytes: Vec<u8>) -> Result<Self, KeyBytesError>
pub fn from_bytes(bytes: Vec<u8>) -> Result<Self, KeyBytesError>
Validates a key’s purpose/version envelope and hard size bounds.
Sourcepub fn index_id(&self) -> IndexId
pub fn index_id(&self) -> IndexId
Returns the stable type identity encoded in the key envelope.
Sourcepub fn into_bytes(self) -> Vec<u8> ⓘ
pub fn into_bytes(self) -> Vec<u8> ⓘ
Returns the canonical key bytes.
Trait Implementations§
Source§impl Clone for IndexEntryKey
impl Clone for IndexEntryKey
Source§impl Debug for IndexEntryKey
impl Debug for IndexEntryKey
impl Eq for IndexEntryKey
Source§impl Hash for IndexEntryKey
impl Hash for IndexEntryKey
Source§impl Ord for IndexEntryKey
impl Ord for IndexEntryKey
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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for IndexEntryKey
impl PartialEq for IndexEntryKey
Source§impl PartialOrd for IndexEntryKey
impl PartialOrd for IndexEntryKey
impl StructuralPartialEq for IndexEntryKey
Auto Trait Implementations§
impl Freeze for IndexEntryKey
impl RefUnwindSafe for IndexEntryKey
impl Send for IndexEntryKey
impl Sync for IndexEntryKey
impl Unpin for IndexEntryKey
impl UnsafeUnpin for IndexEntryKey
impl UnwindSafe for IndexEntryKey
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