pub struct IdentityCodec;Expand description
A codec that performs no transformation, returning the input value as-is.
Trait Implementations§
Source§impl Clone for IdentityCodec
impl Clone for IdentityCodec
Source§fn clone(&self) -> IdentityCodec
fn clone(&self) -> IdentityCodec
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<T> Codec<T> for IdentityCodecwhere
T: Clone,
impl<T> Codec<T> for IdentityCodecwhere
T: Clone,
Source§impl Debug for IdentityCodec
impl Debug for IdentityCodec
Source§impl Default for IdentityCodec
impl Default for IdentityCodec
Source§fn default() -> IdentityCodec
fn default() -> IdentityCodec
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for IdentityCodec
impl RefUnwindSafe for IdentityCodec
impl Send for IdentityCodec
impl Sync for IdentityCodec
impl Unpin for IdentityCodec
impl UnwindSafe for IdentityCodec
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