pub struct Normal;Expand description
The default strategy for encoding data.
This exists so that code may be written only once that needs to be able to handle any strategy.
Trait Implementations§
Source§impl<T: Encode> EncodingStrategy<T> for Normal
impl<T: Encode> EncodingStrategy<T> for Normal
Source§impl<T: Encode> EncodingStrategy<T> for Normal
impl<T: Encode> EncodingStrategy<T> for Normal
Source§type Context = <T as Encode>::Context
type Context = <T as Encode>::Context
The conext (i.e. probability model) for this encoding strategy applied to this type.
Source§fn encode<W: Write>(
value: &T,
writer: &mut Writer<W>,
ctx: &mut Self::Context,
) -> Result<(), Error>
fn encode<W: Write>( value: &T, writer: &mut Writer<W>, ctx: &mut Self::Context, ) -> Result<(), Error>
Encode the value with this strategy.
Source§impl Ord for Normal
impl Ord for Normal
Source§impl PartialOrd for Normal
impl PartialOrd for Normal
impl Copy for Normal
impl Eq for Normal
impl StructuralPartialEq for Normal
Auto Trait Implementations§
impl Freeze for Normal
impl RefUnwindSafe for Normal
impl Send for Normal
impl Sync for Normal
impl Unpin for Normal
impl UnwindSafe for Normal
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