pub struct RawDevField<'a> {
pub field_def_num: u8,
pub developer_data_index: u8,
pub bytes: Cow<'a, [u8]>,
}Expand description
A developer field’s wire bytes, awaiting M6 schema resolution.
bytes is borrowed from the decoder’s input slice when produced by the
streaming decoder, eliminating per-message heap allocation.
Fields§
§field_def_num: u8Wire-level field definition number.
developer_data_index: u8Index into the developer data ID table.
bytes: Cow<'a, [u8]>Raw bytes exactly as they appeared on the wire.
Implementations§
Source§impl<'a> RawDevField<'a>
impl<'a> RawDevField<'a>
Sourcepub fn into_owned(self) -> RawDevField<'static>
pub fn into_owned(self) -> RawDevField<'static>
Detach the byte slice from the input buffer.
Trait Implementations§
Source§impl<'a> Clone for RawDevField<'a>
impl<'a> Clone for RawDevField<'a>
Source§fn clone(&self) -> RawDevField<'a>
fn clone(&self) -> RawDevField<'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 RawDevField<'a>
impl<'a> Debug for RawDevField<'a>
Source§impl<'a> PartialEq for RawDevField<'a>
impl<'a> PartialEq for RawDevField<'a>
Source§fn eq(&self, other: &RawDevField<'a>) -> bool
fn eq(&self, other: &RawDevField<'a>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<'a> Eq for RawDevField<'a>
impl<'a> StructuralPartialEq for RawDevField<'a>
Auto Trait Implementations§
impl<'a> Freeze for RawDevField<'a>
impl<'a> RefUnwindSafe for RawDevField<'a>
impl<'a> Send for RawDevField<'a>
impl<'a> Sync for RawDevField<'a>
impl<'a> Unpin for RawDevField<'a>
impl<'a> UnsafeUnpin for RawDevField<'a>
impl<'a> UnwindSafe for RawDevField<'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