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