pub struct TwoByteElements<'a>(pub Vec<TwoByteElement<'a>>);Available on crate feature
rfc8285 only.Expand description
A parsed (or to-be-serialized) sequence of RFC 8285 two-byte-form
extension elements — the full contents of a HeaderExtension whose
profile_id & 0xFFF0 == 0x1000 (§4.3), excluding padding bytes.
Tuple Fields§
§0: Vec<TwoByteElement<'a>>Implementations§
Source§impl<'a> TwoByteElements<'a>
impl<'a> TwoByteElements<'a>
Sourcepub fn elements(&self) -> &[TwoByteElement<'a>]
pub fn elements(&self) -> &[TwoByteElement<'a>]
The parsed elements, in wire order.
Trait Implementations§
Source§impl<'a> Clone for TwoByteElements<'a>
impl<'a> Clone for TwoByteElements<'a>
Source§fn clone(&self) -> TwoByteElements<'a>
fn clone(&self) -> TwoByteElements<'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 moreSource§impl<'a> Debug for TwoByteElements<'a>
impl<'a> Debug for TwoByteElements<'a>
Source§impl<'a> Default for TwoByteElements<'a>
impl<'a> Default for TwoByteElements<'a>
Source§fn default() -> TwoByteElements<'a>
fn default() -> TwoByteElements<'a>
Returns the “default value” for a type. Read more
impl<'a> Eq for TwoByteElements<'a>
Source§impl<'a> IntoIterator for TwoByteElements<'a>
impl<'a> IntoIterator for TwoByteElements<'a>
Source§impl<'a> Parse<'a> for TwoByteElements<'a>
impl<'a> Parse<'a> for TwoByteElements<'a>
Source§impl<'a> PartialEq for TwoByteElements<'a>
impl<'a> PartialEq for TwoByteElements<'a>
Source§impl<'a> Serialize for TwoByteElements<'a>
Available on crate feature serde only.
impl<'a> Serialize for TwoByteElements<'a>
Available on crate feature
serde only.Source§impl Serialize for TwoByteElements<'_>
impl Serialize for TwoByteElements<'_>
Source§type Error = Error
type Error = Error
The error type this implementer returns (usually the same as the
corresponding
Parse impl, but need not be).Source§fn serialized_len(&self) -> usize
fn serialized_len(&self) -> usize
Number of bytes
serialize_into will write.impl<'a> StructuralPartialEq for TwoByteElements<'a>
Auto Trait Implementations§
impl<'a> Freeze for TwoByteElements<'a>
impl<'a> RefUnwindSafe for TwoByteElements<'a>
impl<'a> Send for TwoByteElements<'a>
impl<'a> Sync for TwoByteElements<'a>
impl<'a> Unpin for TwoByteElements<'a>
impl<'a> UnsafeUnpin for TwoByteElements<'a>
impl<'a> UnwindSafe for TwoByteElements<'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