pub struct OneByteElements<'a>(pub Vec<OneByteElement<'a>>);Available on crate feature
rfc8285 only.Expand description
A parsed (or to-be-serialized) sequence of RFC 8285 one-byte-form
extension elements — the full contents of a HeaderExtension whose
profile_id == ONE_BYTE_PROFILE_ID, excluding padding bytes and
anything after a stop point (§4.1.2/§4.2).
Tuple Fields§
§0: Vec<OneByteElement<'a>>Implementations§
Source§impl<'a> OneByteElements<'a>
impl<'a> OneByteElements<'a>
Sourcepub fn elements(&self) -> &[OneByteElement<'a>]
pub fn elements(&self) -> &[OneByteElement<'a>]
The parsed elements, in wire order.
Trait Implementations§
Source§impl<'a> Clone for OneByteElements<'a>
impl<'a> Clone for OneByteElements<'a>
Source§fn clone(&self) -> OneByteElements<'a>
fn clone(&self) -> OneByteElements<'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 OneByteElements<'a>
impl<'a> Debug for OneByteElements<'a>
Source§impl<'a> Default for OneByteElements<'a>
impl<'a> Default for OneByteElements<'a>
Source§fn default() -> OneByteElements<'a>
fn default() -> OneByteElements<'a>
Returns the “default value” for a type. Read more
impl<'a> Eq for OneByteElements<'a>
Source§impl<'a> IntoIterator for OneByteElements<'a>
impl<'a> IntoIterator for OneByteElements<'a>
Source§impl<'a> Parse<'a> for OneByteElements<'a>
impl<'a> Parse<'a> for OneByteElements<'a>
Source§impl<'a> PartialEq for OneByteElements<'a>
impl<'a> PartialEq for OneByteElements<'a>
Source§impl<'a> Serialize for OneByteElements<'a>
Available on crate feature serde only.
impl<'a> Serialize for OneByteElements<'a>
Available on crate feature
serde only.Source§impl Serialize for OneByteElements<'_>
impl Serialize for OneByteElements<'_>
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 OneByteElements<'a>
Auto Trait Implementations§
impl<'a> Freeze for OneByteElements<'a>
impl<'a> RefUnwindSafe for OneByteElements<'a>
impl<'a> Send for OneByteElements<'a>
impl<'a> Sync for OneByteElements<'a>
impl<'a> Unpin for OneByteElements<'a>
impl<'a> UnsafeUnpin for OneByteElements<'a>
impl<'a> UnwindSafe for OneByteElements<'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