pub struct Count(/* private fields */);Expand description
A nonempty dense byte-routing domain.
Implementations§
Source§impl Count
impl Count
pub const MIN: Self
Sourcepub const fn index(self, raw: u8) -> Option<Index>
pub const fn index(self, raw: u8) -> Option<Index>
Converts an external route byte into an index admitted by this domain.
pub const fn encode(self) -> u16
Sourcepub fn indices(
self,
) -> impl ExactSizeIterator<Item = Index> + DoubleEndedIterator
pub fn indices( self, ) -> impl ExactSizeIterator<Item = Index> + DoubleEndedIterator
Iterates every index proved to belong to this dense domain.
Trait Implementations§
impl Copy for Count
impl Eq for Count
impl StructuralPartialEq for Count
Auto Trait Implementations§
impl Forget for Count
impl Freeze for Count
impl RefUnwindSafe for Count
impl Send for Count
impl Sync for Count
impl Unpin for Count
impl UnsafeUnpin for Count
impl UnwindSafe for Count
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