pub struct DisplayCodec;Expand description
Codec for self-describing values: renders via the value’s Display impl.
Suitable for values that already carry their own labels (e.g. a tree algebra’s value).
Trait Implementations§
Source§impl Clone for DisplayCodec
impl Clone for DisplayCodec
Source§fn clone(&self) -> DisplayCodec
fn clone(&self) -> DisplayCodec
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 moreimpl Copy for DisplayCodec
Source§impl Debug for DisplayCodec
impl Debug for DisplayCodec
Source§impl Default for DisplayCodec
impl Default for DisplayCodec
Source§fn default() -> DisplayCodec
fn default() -> DisplayCodec
Returns the “default value” for a type. Read more
Source§impl<V: Display + ?Sized> OutputCodec<V> for DisplayCodec
impl<V: Display + ?Sized> OutputCodec<V> for DisplayCodec
Auto Trait Implementations§
impl Freeze for DisplayCodec
impl RefUnwindSafe for DisplayCodec
impl Send for DisplayCodec
impl Sync for DisplayCodec
impl Unpin for DisplayCodec
impl UnsafeUnpin for DisplayCodec
impl UnwindSafe for DisplayCodec
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