pub struct TwoByteId(/* private fields */);Available on crate feature
rfc8285 only.Expand description
A validated RFC 8285 two-byte-form local identifier (§4.1.2/§5: 0 is
reserved for padding “in both forms”; §4.3’s own field is otherwise the
full 8-bit range, 1..=255). TwoByteId::new rejects 0, so a
TwoByteElement can never hold the reserved padding ID.
Implementations§
Trait Implementations§
impl Copy for TwoByteId
impl Eq for TwoByteId
Source§impl Ord for TwoByteId
impl Ord for TwoByteId
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for TwoByteId
impl PartialOrd for TwoByteId
impl StructuralPartialEq for TwoByteId
Auto Trait Implementations§
impl Freeze for TwoByteId
impl RefUnwindSafe for TwoByteId
impl Send for TwoByteId
impl Sync for TwoByteId
impl Unpin for TwoByteId
impl UnsafeUnpin for TwoByteId
impl UnwindSafe for TwoByteId
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