pub struct Label {
octets: Bytes,
}Expand description
A label is just a sequence of octets, which are compared as case-insensitive ASCII. A label can be no longer than 63 octets.
Fields§
§octets: BytesPrivate to this module so constructing an invalid Label is
impossible.
Implementations§
Trait Implementations§
Source§impl Ord for Label
impl Ord for Label
Source§impl PartialOrd for Label
impl PartialOrd for Label
impl Eq for Label
impl StructuralPartialEq for Label
Auto Trait Implementations§
impl !Freeze for Label
impl RefUnwindSafe for Label
impl Send for Label
impl Sync for Label
impl Unpin for Label
impl UnsafeUnpin for Label
impl UnwindSafe for Label
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