pub struct MinimalBinary(pub u64);
Expand description
Structure representing minimal binary coding with a fixed length.
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 context in which a
DynamicCodeRead
, DynamicCodeWrite
, StaticCodeRead
,
StaticCodeWrite
or CodeLen
implementing minimal binary coding
is necessary.
Tuple Fields§
§0: u64
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 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 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, U> CastableInto<U> for Twhere
U: CastableFrom<T>,
impl<T, U> CastableInto<U> for Twhere
U: CastableFrom<T>,
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> DowncastableFrom<T> for T
impl<T> DowncastableFrom<T> for T
Source§fn downcast_from(value: T) -> T
fn downcast_from(value: T) -> T
Truncate the current UnsignedInt to a possibly smaller size
Source§impl<T, U> DowncastableInto<U> for Twhere
U: DowncastableFrom<T>,
impl<T, U> DowncastableInto<U> for Twhere
U: DowncastableFrom<T>,
Source§impl<T> UpcastableFrom<T> for T
impl<T> UpcastableFrom<T> for T
Source§fn upcast_from(value: T) -> T
fn upcast_from(value: T) -> T
Extend the current UnsignedInt to a possibly bigger size.