pub enum BaseTypeEncoding {
Show 16 variants
OnesComplement,
TwosComplement,
SignMagnitude,
BcdPacked,
BcdUnpacked,
DspFractional,
Ieee754,
Iso8859_1,
Iso8859_2,
Windows1252,
Utf8,
Utf16,
Ucs2,
Boolean,
Void,
None,
}
Expand description
BaseTypeEncoding
describes the encoding of a basic data type.
Variants§
OnesComplement
OnesComplement
is used for signed integers
TwosComplement
TwosComplement
is used for signed integers
SignMagnitude
SignMagnitude
is used for signed integers
BcdPacked
BcdPacked
is used for packed binary coded decimals
BcdUnpacked
BcdUnpacked
is used for unpacked binary coded decimals
DspFractional
DspFractional
is used for values in a digital signal processor
Ieee754
Ieee754 is used for floating point numbers
Iso8859_1
encoding: Iso8859_1
is used for strings
Iso8859_2
encoding: Iso8859_2
is used for strings
Windows1252
encoding: Windows1252 is used for strings
Utf8
encoding: Utf8 is used for strings
Utf16
encoding: Utf16 is used for strings - byte order must be specified
Ucs2
encoding: Ucs2 is used for strings
Boolean
encoding: Boolean is used for boolean values
Void
encoding: Void is used for C void types
None
encoding: None is used for unsigned integers
Trait Implementations§
Source§impl Clone for BaseTypeEncoding
impl Clone for BaseTypeEncoding
Source§fn clone(&self) -> BaseTypeEncoding
fn clone(&self) -> BaseTypeEncoding
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for BaseTypeEncoding
impl Debug for BaseTypeEncoding
Source§impl Display for BaseTypeEncoding
impl Display for BaseTypeEncoding
Source§impl Hash for BaseTypeEncoding
impl Hash for BaseTypeEncoding
Source§impl PartialEq for BaseTypeEncoding
impl PartialEq for BaseTypeEncoding
Source§impl TryFrom<&str> for BaseTypeEncoding
impl TryFrom<&str> for BaseTypeEncoding
impl Copy for BaseTypeEncoding
impl Eq for BaseTypeEncoding
impl StructuralPartialEq for BaseTypeEncoding
Auto Trait Implementations§
impl Freeze for BaseTypeEncoding
impl RefUnwindSafe for BaseTypeEncoding
impl Send for BaseTypeEncoding
impl Sync for BaseTypeEncoding
impl Unpin for BaseTypeEncoding
impl UnwindSafe for BaseTypeEncoding
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
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§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
key
and return true
if they are equal.