pub struct Field<'a> {
pub id: FieldId,
pub value: &'a [u8],
pub raw: &'a [u8],
}Expand description
An object field: header and value as slices of the original bytes.
Fields§
§id: FieldId§value: &'a [u8]The value without its length prefix.
raw: &'a [u8]The whole field: header, length prefix, value.
Trait Implementations§
impl<'a> Copy for Field<'a>
impl<'a> Eq for Field<'a>
impl<'a> StructuralPartialEq for Field<'a>
Auto Trait Implementations§
impl<'a> Freeze for Field<'a>
impl<'a> RefUnwindSafe for Field<'a>
impl<'a> Send for Field<'a>
impl<'a> Sync for Field<'a>
impl<'a> Unpin for Field<'a>
impl<'a> UnsafeUnpin for Field<'a>
impl<'a> UnwindSafe for Field<'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