pub struct ManifestKey {
pub kind: ManifestObjectKind,
pub hash: ContentHash,
}Expand description
The trie key: (kind, object_hash). Ordering is the canonical plan order —
kind first, then the 32 hash bytes lexicographically.
Fields§
§kind: ManifestObjectKind§hash: ContentHashImplementations§
Source§impl ManifestKey
impl ManifestKey
pub fn new(kind: ManifestObjectKind, hash: ContentHash) -> Self
Sourcepub fn route(&self) -> ManifestRoute
pub fn route(&self) -> ManifestRoute
The 256 routing bits for this key.
Trait Implementations§
Source§impl Clone for ManifestKey
impl Clone for ManifestKey
Source§fn clone(&self) -> ManifestKey
fn clone(&self) -> ManifestKey
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 ManifestKey
Source§impl Debug for ManifestKey
impl Debug for ManifestKey
impl Eq for ManifestKey
Source§impl Hash for ManifestKey
impl Hash for ManifestKey
Source§impl Ord for ManifestKey
impl Ord for ManifestKey
Source§fn cmp(&self, other: &ManifestKey) -> Ordering
fn cmp(&self, other: &ManifestKey) -> 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 ManifestKey
impl PartialEq for ManifestKey
Source§impl PartialOrd for ManifestKey
impl PartialOrd for ManifestKey
impl StructuralPartialEq for ManifestKey
Auto Trait Implementations§
impl Freeze for ManifestKey
impl RefUnwindSafe for ManifestKey
impl Send for ManifestKey
impl Sync for ManifestKey
impl Unpin for ManifestKey
impl UnsafeUnpin for ManifestKey
impl UnwindSafe for ManifestKey
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