pub struct PrefixExtent { /* private fields */ }Expand description
The nonzero extent occupied by a validated encoded prefix.
Implementations§
Source§impl PrefixExtent
impl PrefixExtent
Sourcepub const fn new(encoded_len: NonZeroUsize) -> Self
pub const fn new(encoded_len: NonZeroUsize) -> Self
Creates an extent from a nonzero encoded length.
Sourcepub const fn encoded_len(self) -> NonZeroUsize
pub const fn encoded_len(self) -> NonZeroUsize
Returns the number of bytes occupied by the encoded prefix.
Trait Implementations§
Source§impl Clone for PrefixExtent
impl Clone for PrefixExtent
Source§fn clone(&self) -> PrefixExtent
fn clone(&self) -> PrefixExtent
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 PrefixExtent
Source§impl Debug for PrefixExtent
impl Debug for PrefixExtent
impl Eq for PrefixExtent
Source§impl Hash for PrefixExtent
impl Hash for PrefixExtent
Source§impl PartialEq for PrefixExtent
impl PartialEq for PrefixExtent
impl StructuralPartialEq for PrefixExtent
Auto Trait Implementations§
impl Freeze for PrefixExtent
impl RefUnwindSafe for PrefixExtent
impl Send for PrefixExtent
impl Sync for PrefixExtent
impl Unpin for PrefixExtent
impl UnsafeUnpin for PrefixExtent
impl UnwindSafe for PrefixExtent
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