pub struct ExtensionFieldRef<'a> {
pub field_type: u16,
pub value: &'a [u8],
}Expand description
A borrowed view of an extension field (no allocation).
This type references data within the original byte buffer, avoiding
the heap allocation required by ExtensionField.
Fields§
§field_type: u16The extension field type code.
value: &'a [u8]The extension field value (variable length, excluding the 4-byte header).
Trait Implementations§
Source§impl<'a> Clone for ExtensionFieldRef<'a>
impl<'a> Clone for ExtensionFieldRef<'a>
Source§fn clone(&self) -> ExtensionFieldRef<'a>
fn clone(&self) -> ExtensionFieldRef<'a>
Returns a duplicate of the value. Read more
1.0.0 · 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 ExtensionFieldRef<'a>
impl<'a> Debug for ExtensionFieldRef<'a>
Source§impl<'a> PartialEq for ExtensionFieldRef<'a>
impl<'a> PartialEq for ExtensionFieldRef<'a>
impl<'a> Eq for ExtensionFieldRef<'a>
impl<'a> StructuralPartialEq for ExtensionFieldRef<'a>
Auto Trait Implementations§
impl<'a> Freeze for ExtensionFieldRef<'a>
impl<'a> RefUnwindSafe for ExtensionFieldRef<'a>
impl<'a> Send for ExtensionFieldRef<'a>
impl<'a> Sync for ExtensionFieldRef<'a>
impl<'a> Unpin for ExtensionFieldRef<'a>
impl<'a> UnsafeUnpin for ExtensionFieldRef<'a>
impl<'a> UnwindSafe for ExtensionFieldRef<'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