pub struct Label<'a> {
pub length: u8,
pub data: &'a [u8],
}Fields§
§length: u8§data: &'a [u8]Implementations§
Trait Implementations§
Source§impl<'a> WireLength<usize> for &Label<'a>
impl<'a> WireLength<usize> for &Label<'a>
Source§fn wire_length(&self) -> usize
fn wire_length(&self) -> usize
Returns the length of this value in bytes when encoded in wire format.
impl<'a> Copy for Label<'a>
impl<'a> Eq for Label<'a>
impl<'a> StructuralPartialEq for Label<'a>
Auto Trait Implementations§
impl<'a> Freeze for Label<'a>
impl<'a> RefUnwindSafe for Label<'a>
impl<'a> Send for Label<'a>
impl<'a> Sync for Label<'a>
impl<'a> Unpin for Label<'a>
impl<'a> UnsafeUnpin for Label<'a>
impl<'a> UnwindSafe for Label<'a>
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