pub struct Encoded<'a, V> {
pub bytes: &'a [u8],
pub view: V,
}Expand description
The result of Payload::encode: the bytes written and their view. It is
data, not a proof.
Fields§
§bytes: &'a [u8]The encoded bytes, a subslice of the output buffer.
view: VThe view of those bytes.
Trait Implementations§
impl<'a, V: Copy> Copy for Encoded<'a, V>
impl<'a, V: Eq> Eq for Encoded<'a, V>
impl<'a, V: PartialEq> StructuralPartialEq for Encoded<'a, V>
Auto Trait Implementations§
impl<'a, V> Freeze for Encoded<'a, V>where
V: Freeze,
impl<'a, V> RefUnwindSafe for Encoded<'a, V>where
V: RefUnwindSafe,
impl<'a, V> Send for Encoded<'a, V>where
V: Send,
impl<'a, V> Sync for Encoded<'a, V>where
V: Sync,
impl<'a, V> Unpin for Encoded<'a, V>where
V: Unpin,
impl<'a, V> UnsafeUnpin for Encoded<'a, V>where
V: UnsafeUnpin,
impl<'a, V> UnwindSafe for Encoded<'a, V>where
V: UnwindSafe,
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