pub struct Encoded { /* private fields */ }Expand description
Encoded payload with the type tag kept separate from the payload buffer.
Splitting the tag lets callers write the 1-byte tag and the payload as two
owned buffers, so raw payloads are never copied. Use Encoded::into_parts
to obtain both, or Encoded::payload to inspect the bytes.
Implementations§
Trait Implementations§
impl Eq for Encoded
impl StructuralPartialEq for Encoded
Auto Trait Implementations§
impl Forget for Encoded
impl Freeze for Encoded
impl Move for Encoded
impl RefUnwindSafe for Encoded
impl Send for Encoded
impl Sync for Encoded
impl Unpin for Encoded
impl UnsafeUnpin for Encoded
impl UnwindSafe for Encoded
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