pub struct BytesData;Expand description
TraceData implementation using Bytes and BytesString.
Trait Implementations§
Source§impl DeserializableTraceData for BytesData
impl DeserializableTraceData for BytesData
fn get_mut_slice(buf: &mut Bytes) -> &mut &'static [u8] ⓘ
fn try_slice_and_advance(buf: &mut Bytes, bytes: usize) -> Option<Bytes>
fn read_string(buf: &mut Bytes) -> Result<BytesString, DecodeError>
Source§fn intern_skipped_str(owner: &Bytes, s: &'static str) -> BytesString
fn intern_skipped_str(owner: &Bytes, s: &'static str) -> BytesString
Interns a string found while walking a value through
get_mut_slice’s lied 'static
view (e.g. skipping an unrecognized V1 field for forward compatibility). s really
borrows from owner’s memory, not 'static: implementations must derive Self::Text
from owner itself rather than trusting that lifetime, so a refcounted backing
allocation isn’t freed out from under the interned string.impl StructuralPartialEq for BytesData
Auto Trait Implementations§
impl Freeze for BytesData
impl RefUnwindSafe for BytesData
impl Send for BytesData
impl Sync for BytesData
impl Unpin for BytesData
impl UnsafeUnpin for BytesData
impl UnwindSafe for BytesData
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