Enum strict_encoding::U4
source · #[repr(u8)]
pub enum U4 {
Show 16 variants
V0,
V1,
V2,
V3,
V4,
V5,
V6,
V7,
V8,
V9,
V10,
V11,
V12,
V13,
V14,
V15,
}
Variants§
Trait Implementations§
source§impl Ord for U4
impl Ord for U4
source§impl PartialOrd<U4> for U4
impl PartialOrd<U4> for U4
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 U4
impl StrictDecode for U4
fn strict_decode(reader: &mut impl TypedRead) -> Result<Self, DecodeError>
source§impl StrictEncode for U4
impl StrictEncode for U4
fn strict_encode<W: TypedWrite>(&self, writer: W) -> Result<W>
source§impl StrictEnum for U4
impl StrictEnum for U4
fn from_variant_name(name: &FieldName) -> Result<Self, VariantError<&FieldName>>
fn strict_type_info() -> TypeInfo<Self>
source§impl StrictSum for U4
impl StrictSum for U4
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 U4
impl StrictType for U4
const STRICT_LIB_NAME: &'static str = STD_LIB
fn strict_name() -> Option<TypeName>
impl Copy for U4
impl Eq for U4
impl StructuralEq for U4
impl StructuralPartialEq for U4
Auto Trait Implementations§
impl RefUnwindSafe for U4
impl Send for U4
impl Sync for U4
impl Unpin for U4
impl UnwindSafe for U4
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.