pub struct Exhaustive;Expand description
Encode every candidate that applies and keep the smallest.
The reference, and what encode has always done. It is the thing to beat rather than the thing
to ship: every size this crate has ever reported came out of it, so an alternative’s ablation is
against this and a build that wants the old bytes exactly asks for this.
Trait Implementations§
Source§impl Chooser for Exhaustive
impl Chooser for Exhaustive
Source§fn narrow_integers(
&self,
_values: &[i64],
offered: &[Kind],
_depth: u8,
) -> Vec<Kind>
fn narrow_integers( &self, _values: &[i64], offered: &[Kind], _depth: u8, ) -> Vec<Kind>
Which of
offered to encode in full, for a chunk of integers at depth.Source§impl Clone for Exhaustive
impl Clone for Exhaustive
impl Copy for Exhaustive
Source§impl Debug for Exhaustive
impl Debug for Exhaustive
Auto Trait Implementations§
impl Freeze for Exhaustive
impl RefUnwindSafe for Exhaustive
impl Send for Exhaustive
impl Sync for Exhaustive
impl Unpin for Exhaustive
impl UnsafeUnpin for Exhaustive
impl UnwindSafe for Exhaustive
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