Enum strict_encoding::stl::U2
source · #[repr(u8)]pub enum U2 {
_0 = 0,
_1 = 1,
_2 = 2,
_3 = 3,
}Variants§
Trait Implementations§
source§impl Ord for U2
impl Ord for U2
source§impl PartialOrd for U2
impl PartialOrd for U2
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 U2
impl StrictDecode for U2
fn strict_decode(reader: &mut impl TypedRead) -> Result<Self, DecodeError>
fn strict_read(reader: impl ReadRaw) -> Result<Self, DecodeError>
source§impl StrictEncode for U2
impl StrictEncode for U2
fn strict_encode<W: TypedWrite>(&self, writer: W) -> Result<W>
fn strict_write(&self, writer: impl WriteRaw) -> Result<()>
source§impl StrictEnum for U2
impl StrictEnum for U2
fn from_variant_name( name: &VariantName ) -> Result<Self, VariantError<&VariantName>>
fn strict_type_info() -> TypeInfo<Self>
source§impl StrictSum for U2
impl StrictSum for U2
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<VariantName>
fn variant_ord(&self) -> u8
source§impl StrictType for U2
impl StrictType for U2
const STRICT_LIB_NAME: &'static str = LIB_NAME_STD
fn strict_name() -> Option<TypeName>
impl Copy for U2
impl Eq for U2
impl StructuralPartialEq for U2
Auto Trait Implementations§
impl RefUnwindSafe for U2
impl Send for U2
impl Sync for U2
impl Unpin for U2
impl UnwindSafe for U2
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