pub struct ExtensionField<'a> {
pub field_type: u16,
pub value: &'a [u8],
}Expand description
One RFC 7822 extension field: type, and its value bytes (header excluded).
Fields§
§field_type: u16§value: &'a [u8]Trait Implementations§
Source§impl<'a> Clone for ExtensionField<'a>
impl<'a> Clone for ExtensionField<'a>
Source§fn clone(&self) -> ExtensionField<'a>
fn clone(&self) -> ExtensionField<'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 ExtensionField<'a>
Source§impl<'a> Debug for ExtensionField<'a>
impl<'a> Debug for ExtensionField<'a>
impl<'a> Eq for ExtensionField<'a>
Source§impl<'a> PartialEq for ExtensionField<'a>
impl<'a> PartialEq for ExtensionField<'a>
impl<'a> StructuralPartialEq for ExtensionField<'a>
Auto Trait Implementations§
impl<'a> Freeze for ExtensionField<'a>
impl<'a> RefUnwindSafe for ExtensionField<'a>
impl<'a> Send for ExtensionField<'a>
impl<'a> Sync for ExtensionField<'a>
impl<'a> Unpin for ExtensionField<'a>
impl<'a> UnsafeUnpin for ExtensionField<'a>
impl<'a> UnwindSafe for ExtensionField<'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