pub struct OneByteElement<'a> {
pub id: OneByteId,
pub data: &'a [u8],
}Available on crate feature
rfc8285 only.Expand description
A single RFC 8285 one-byte-form extension element (§4.2): a validated
1..=14 local identifier plus 1..=16 bytes of element data.
Fields§
§id: OneByteIdThe element’s local identifier.
data: &'a [u8]The element’s data, 1..=16 bytes (§4.2: len nibble = `data.len()
- 1`).
Trait Implementations§
Source§impl<'a> Clone for OneByteElement<'a>
impl<'a> Clone for OneByteElement<'a>
Source§fn clone(&self) -> OneByteElement<'a>
fn clone(&self) -> OneByteElement<'a>
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<'a> Copy for OneByteElement<'a>
Source§impl<'a> Debug for OneByteElement<'a>
impl<'a> Debug for OneByteElement<'a>
impl<'a> Eq for OneByteElement<'a>
Source§impl<'a> PartialEq for OneByteElement<'a>
impl<'a> PartialEq for OneByteElement<'a>
Source§impl<'a> Serialize for OneByteElement<'a>
Available on crate feature serde only.
impl<'a> Serialize for OneByteElement<'a>
Available on crate feature
serde only.impl<'a> StructuralPartialEq for OneByteElement<'a>
Auto Trait Implementations§
impl<'a> Freeze for OneByteElement<'a>
impl<'a> RefUnwindSafe for OneByteElement<'a>
impl<'a> Send for OneByteElement<'a>
impl<'a> Sync for OneByteElement<'a>
impl<'a> Unpin for OneByteElement<'a>
impl<'a> UnsafeUnpin for OneByteElement<'a>
impl<'a> UnwindSafe for OneByteElement<'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