pub struct Selector { /* private fields */ }Expand description
Selects one dense route byte from either of two packet shapes.
Implementations§
Source§impl Selector
impl Selector
pub const fn fixed<const BRANCH_AT: u8, const BRANCH_MASK: u8, const CLEAR_KEY: u8, const CLEAR_MIN: u8, const LENGTH_AT: u8, const LENGTH: u8, const SET_KEY: u8, const SET_MIN: u8>() -> Self
pub const fn branch_at(self) -> u8
pub const fn branch_mask(self) -> NonZero<u8>
pub const fn clear_key(self) -> u8
pub const fn clear_min(self) -> NonZero<u8>
pub const fn length_at(self) -> u8
pub const fn length(self) -> u8
pub const fn set_key(self) -> u8
pub const fn set_min(self) -> NonZero<u8>
Trait Implementations§
impl Copy for Selector
impl Eq for Selector
impl StructuralPartialEq for Selector
Auto Trait Implementations§
impl Freeze for Selector
impl RefUnwindSafe for Selector
impl Send for Selector
impl Sync for Selector
impl Unpin for Selector
impl UnsafeUnpin for Selector
impl UnwindSafe for Selector
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