#[repr(u8)]pub enum EmbeddedArithm {
NonFungible = 0,
Fungible = 1,
}Variants§
Trait Implementations§
Source§impl Clone for EmbeddedArithm
impl Clone for EmbeddedArithm
Source§fn clone(&self) -> EmbeddedArithm
fn clone(&self) -> EmbeddedArithm
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 EmbeddedArithm
impl Debug for EmbeddedArithm
Source§impl<'de> Deserialize<'de> for EmbeddedArithm
impl<'de> Deserialize<'de> for EmbeddedArithm
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<EmbeddedArithm> for u8
impl From<EmbeddedArithm> for u8
Source§fn from(value: EmbeddedArithm) -> u8
fn from(value: EmbeddedArithm) -> u8
Converts to this type from the input type.
Source§impl Hash for EmbeddedArithm
impl Hash for EmbeddedArithm
Source§impl Ord for EmbeddedArithm
impl Ord for EmbeddedArithm
Source§fn cmp(&self, other: &EmbeddedArithm) -> Ordering
fn cmp(&self, other: &EmbeddedArithm) -> 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 EmbeddedArithm
impl PartialEq for EmbeddedArithm
Source§impl PartialOrd for EmbeddedArithm
impl PartialOrd for EmbeddedArithm
Source§impl Serialize for EmbeddedArithm
impl Serialize for EmbeddedArithm
Source§impl StateArithm for EmbeddedArithm
impl StateArithm for EmbeddedArithm
Source§fn calculator(&self) -> Box<dyn StateCalc>
fn calculator(&self) -> Box<dyn StateCalc>
Calculator allows to perform calculations on the state (ordering and sorting, coin
selection, change calculation).
Source§impl StrictDecode for EmbeddedArithm
impl StrictDecode for EmbeddedArithm
fn strict_decode(reader: &mut impl TypedRead) -> Result<Self, DecodeError>
fn strict_read(reader: impl ReadRaw) -> Result<Self, DecodeError>
Source§impl StrictDumb for EmbeddedArithm
impl StrictDumb for EmbeddedArithm
fn strict_dumb() -> Self
Source§impl StrictEncode for EmbeddedArithm
impl StrictEncode for EmbeddedArithm
fn strict_encode<W: TypedWrite>(&self, writer: W) -> Result<W>
fn strict_write(&self, writer: impl WriteRaw) -> Result<(), Error>
Source§impl StrictEnum for EmbeddedArithm
impl StrictEnum for EmbeddedArithm
fn from_variant_name( name: &VariantName, ) -> Result<Self, VariantError<&VariantName>>
fn strict_type_info() -> TypeInfo<Self>
Source§impl StrictSum for EmbeddedArithm
impl StrictSum for EmbeddedArithm
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 EmbeddedArithm
impl StrictType for EmbeddedArithm
const STRICT_LIB_NAME: &'static str = LIB_NAME_SONIC
fn strict_name() -> Option<TypeName>
Source§impl TryFrom<u8> for EmbeddedArithm
impl TryFrom<u8> for EmbeddedArithm
impl Copy for EmbeddedArithm
impl Eq for EmbeddedArithm
impl StructuralPartialEq for EmbeddedArithm
Auto Trait Implementations§
impl Freeze for EmbeddedArithm
impl RefUnwindSafe for EmbeddedArithm
impl Send for EmbeddedArithm
impl Sync for EmbeddedArithm
impl Unpin for EmbeddedArithm
impl UnwindSafe for EmbeddedArithm
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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
Compare self to
key and return true if they are equal.