pub struct Bootstrap { /* private fields */ }Expand description
Hashes a bounded variable key when the set shape has no direct route. Zero versions retain strict routing; unmatched nonzero versions select route zero.
Implementations§
Source§impl Bootstrap
impl Bootstrap
Sourcepub const fn fixed<const VERSION_AT: u8, const VERSION: u32, const MASK: u8, const VALUE: u8, const MIN: u8, const MAX: u8>() -> Self
pub const fn fixed<const VERSION_AT: u8, const VERSION: u32, const MASK: u8, const VALUE: u8, const MIN: u8, const MAX: u8>() -> Self
Matches a network-order version and the selector’s masked branch byte.
Hash input is the declared length followed by bytes at Selector::set_key.
pub const fn version(self) -> NonZero<u32>
pub const fn version_at(self) -> u8
pub const fn mask(self) -> NonZero<u8>
pub const fn value(self) -> u8
pub const fn min(self) -> NonZero<u8>
pub const fn max(self) -> NonZero<u8>
Trait Implementations§
impl Copy for Bootstrap
impl Eq for Bootstrap
impl StructuralPartialEq for Bootstrap
Auto Trait Implementations§
impl Freeze for Bootstrap
impl RefUnwindSafe for Bootstrap
impl Send for Bootstrap
impl Sync for Bootstrap
impl Unpin for Bootstrap
impl UnsafeUnpin for Bootstrap
impl UnwindSafe for Bootstrap
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