Enum strict_encoding::stl::HexDecSmall
source · #[repr(u8)]pub enum HexDecSmall {
Show 16 variants
Zero = 48,
One = 49,
Two = 50,
Three = 51,
Four = 52,
Five = 53,
Six = 54,
Seven = 55,
Eight = 56,
Nine = 57,
Ten = 97,
Eleven = 98,
Twelve = 99,
Thirteen = 100,
Fourteen = 101,
Fifteen = 102,
}
Variants§
Zero = 48
One = 49
Two = 50
Three = 51
Four = 52
Five = 53
Six = 54
Seven = 55
Eight = 56
Nine = 57
Ten = 97
Eleven = 98
Twelve = 99
Thirteen = 100
Fourteen = 101
Fifteen = 102
Trait Implementations§
source§impl Clone for HexDecSmall
impl Clone for HexDecSmall
source§fn clone(&self) -> HexDecSmall
fn clone(&self) -> HexDecSmall
Returns a copy 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 Debug for HexDecSmall
impl Debug for HexDecSmall
source§impl Display for HexDecSmall
impl Display for HexDecSmall
source§impl From<HexDecSmall> for u8
impl From<HexDecSmall> for u8
source§fn from(value: HexDecSmall) -> u8
fn from(value: HexDecSmall) -> u8
Converts to this type from the input type.
source§impl Hash for HexDecSmall
impl Hash for HexDecSmall
source§impl Ord for HexDecSmall
impl Ord for HexDecSmall
source§fn cmp(&self, other: &HexDecSmall) -> Ordering
fn cmp(&self, other: &HexDecSmall) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for HexDecSmall
impl PartialEq for HexDecSmall
source§fn eq(&self, other: &HexDecSmall) -> bool
fn eq(&self, other: &HexDecSmall) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for HexDecSmall
impl PartialOrd for HexDecSmall
source§fn partial_cmp(&self, other: &HexDecSmall) -> Option<Ordering>
fn partial_cmp(&self, other: &HexDecSmall) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl StrictDecode for HexDecSmall
impl StrictDecode for HexDecSmall
fn strict_decode(reader: &mut impl TypedRead) -> Result<Self, DecodeError>
fn strict_read(lim: usize, reader: impl Read) -> Result<Self, DecodeError>
source§impl StrictDumb for HexDecSmall
impl StrictDumb for HexDecSmall
fn strict_dumb() -> Self
source§impl StrictEncode for HexDecSmall
impl StrictEncode for HexDecSmall
fn strict_encode<W: TypedWrite>(&self, writer: W) -> Result<W>
fn strict_write(&self, lim: usize, writer: impl Write) -> Result<usize>
source§impl StrictEnum for HexDecSmall
impl StrictEnum for HexDecSmall
fn from_variant_name(name: &FieldName) -> Result<Self, VariantError<&FieldName>>
fn strict_type_info() -> TypeInfo<Self>
source§impl StrictSum for HexDecSmall
impl StrictSum for HexDecSmall
const ALL_VARIANTS: &'static [(u8, &'static str)] = _
fn variant_name(&self) -> &'static str
fn strict_check_variants()
fn variant_name_by_tag(tag: u8) -> Option<FieldName>
fn variant_ord(&self) -> u8
source§impl StrictType for HexDecSmall
impl StrictType for HexDecSmall
const STRICT_LIB_NAME: &'static str = LIB_NAME_STD
fn strict_name() -> Option<TypeName>
source§impl TryFrom<u8> for HexDecSmall
impl TryFrom<u8> for HexDecSmall
impl Copy for HexDecSmall
impl Eq for HexDecSmall
impl StructuralEq for HexDecSmall
impl StructuralPartialEq for HexDecSmall
Auto Trait Implementations§
impl RefUnwindSafe for HexDecSmall
impl Send for HexDecSmall
impl Sync for HexDecSmall
impl Unpin for HexDecSmall
impl UnwindSafe for HexDecSmall
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
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.