pub enum FungibleState {
Bits64(u64),
}
Expand description
An atom of an additive state, which thus can be monomorphically encrypted.
Variants§
Implementations§
Source§impl FungibleState
impl FungibleState
pub fn fungible_type(&self) -> FungibleType
pub fn as_u64(&self) -> u64
Trait Implementations§
Source§impl Clone for FungibleState
impl Clone for FungibleState
Source§fn clone(&self) -> FungibleState
fn clone(&self) -> FungibleState
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 FungibleState
impl Debug for FungibleState
Source§impl Default for FungibleState
impl Default for FungibleState
Source§fn default() -> FungibleState
fn default() -> FungibleState
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for FungibleState
impl<'de> Deserialize<'de> for FungibleState
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<FungibleState, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<FungibleState, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for FungibleState
impl Display for FungibleState
Source§impl From<RevealedValue> for FungibleState
impl From<RevealedValue> for FungibleState
Source§fn from(revealed: RevealedValue) -> FungibleState
fn from(revealed: RevealedValue) -> FungibleState
Converts to this type from the input type.
Source§impl From<u64> for FungibleState
impl From<u64> for FungibleState
Source§fn from(v: u64) -> FungibleState
fn from(v: u64) -> FungibleState
Converts to this type from the input type.
Source§impl FromStr for FungibleState
impl FromStr for FungibleState
Source§type Err = ParseIntError
type Err = ParseIntError
The associated error which can be returned from parsing.
Source§fn from_str(s: &str) -> Result<FungibleState, <FungibleState as FromStr>::Err>
fn from_str(s: &str) -> Result<FungibleState, <FungibleState as FromStr>::Err>
Parses a string
s
to return a value of this type. Read moreSource§impl Hash for FungibleState
impl Hash for FungibleState
Source§impl Ord for FungibleState
impl Ord for FungibleState
Source§fn cmp(&self, other: &FungibleState) -> Ordering
fn cmp(&self, other: &FungibleState) -> 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 FungibleState
impl PartialEq for FungibleState
Source§impl PartialOrd for FungibleState
impl PartialOrd for FungibleState
Source§impl Serialize for FungibleState
impl Serialize for FungibleState
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Source§impl StrictDecode for FungibleState
impl StrictDecode for FungibleState
fn strict_decode( reader: &mut impl TypedRead, ) -> Result<FungibleState, DecodeError>
fn strict_read(lim: usize, reader: impl Read) -> Result<Self, DecodeError>
Source§impl StrictEncode for FungibleState
impl StrictEncode for FungibleState
fn strict_encode<W>(&self, writer: W) -> Result<W, Error>where
W: TypedWrite,
fn strict_write(&self, lim: usize, writer: impl Write) -> Result<usize, Error>
Source§impl StrictSum for FungibleState
impl StrictSum for FungibleState
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 FungibleState
impl StrictType for FungibleState
const STRICT_LIB_NAME: &'static str = LIB_NAME_RGB
fn strict_name() -> Option<TypeName>
Source§impl StrictUnion for FungibleState
impl StrictUnion for FungibleState
fn strict_type_info() -> TypeInfo<Self>
impl Copy for FungibleState
impl Eq for FungibleState
impl StructuralPartialEq for FungibleState
Auto Trait Implementations§
impl Freeze for FungibleState
impl RefUnwindSafe for FungibleState
impl Send for FungibleState
impl Sync for FungibleState
impl Unpin for FungibleState
impl UnwindSafe for FungibleState
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.