pub struct MinimalBinary(pub u64);Expand description
Structure representing minimal binary coding with a fixed upper bound.
Minimal binary coding does not
fit the Codes enum because it is not defined for all integers.
Instances of this structure can be used in contexts in which a
DynamicCodeRead, DynamicCodeWrite, StaticCodeRead,
StaticCodeWrite or CodeLen implementing minimal binary coding
is necessary.
Tuple Fields§
§0: u64The upper bound of the minimal binary code.
Trait Implementations§
Source§impl Clone for MinimalBinary
impl Clone for MinimalBinary
Source§fn clone(&self) -> MinimalBinary
fn clone(&self) -> MinimalBinary
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 CodeLen for MinimalBinary
impl CodeLen for MinimalBinary
Source§impl Debug for MinimalBinary
impl Debug for MinimalBinary
Source§impl DynamicCodeRead for MinimalBinary
impl DynamicCodeRead for MinimalBinary
Source§impl DynamicCodeWrite for MinimalBinary
impl DynamicCodeWrite for MinimalBinary
Source§impl Hash for MinimalBinary
impl Hash for MinimalBinary
Source§impl PartialEq for MinimalBinary
impl PartialEq for MinimalBinary
Source§impl<E: Endianness, CR: CodesRead<E> + ?Sized> StaticCodeRead<E, CR> for MinimalBinary
impl<E: Endianness, CR: CodesRead<E> + ?Sized> StaticCodeRead<E, CR> for MinimalBinary
Source§impl<E: Endianness, CW: CodesWrite<E> + ?Sized> StaticCodeWrite<E, CW> for MinimalBinary
impl<E: Endianness, CW: CodesWrite<E> + ?Sized> StaticCodeWrite<E, CW> for MinimalBinary
impl Copy for MinimalBinary
impl Eq for MinimalBinary
impl StructuralPartialEq for MinimalBinary
Auto Trait Implementations§
impl Freeze for MinimalBinary
impl RefUnwindSafe for MinimalBinary
impl Send for MinimalBinary
impl Sync for MinimalBinary
impl Unpin for MinimalBinary
impl UnsafeUnpin for MinimalBinary
impl UnwindSafe for MinimalBinary
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.