pub struct ManifestRoute(/* private fields */);Expand description
The fixed 256-bit route derived from a ManifestKey, read as successive
5-bit groups, most-significant bit first.
Implementations§
Source§impl ManifestRoute
impl ManifestRoute
pub fn as_bytes(&self) -> &[u8; 32]
Sourcepub fn group(&self, level: u8) -> u8
pub fn group(&self, level: u8) -> u8
The bitmap slot this key occupies at level.
Levels past the 256th bit are zero-padded on the right, so the final
level (51) carries a single real bit. Levels at or beyond
MANIFEST_ROUTE_LEVELS are exhausted and always return 0; callers
must stop splitting there rather than loop forever.
Trait Implementations§
Source§impl Clone for ManifestRoute
impl Clone for ManifestRoute
Source§fn clone(&self) -> ManifestRoute
fn clone(&self) -> ManifestRoute
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 ManifestRoute
Source§impl Debug for ManifestRoute
impl Debug for ManifestRoute
impl Eq for ManifestRoute
Source§impl PartialEq for ManifestRoute
impl PartialEq for ManifestRoute
impl StructuralPartialEq for ManifestRoute
Auto Trait Implementations§
impl Freeze for ManifestRoute
impl RefUnwindSafe for ManifestRoute
impl Send for ManifestRoute
impl Sync for ManifestRoute
impl Unpin for ManifestRoute
impl UnsafeUnpin for ManifestRoute
impl UnwindSafe for ManifestRoute
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