pub enum AllocatedState {
Void,
Amount(RevealedValue),
Data(RevealedData),
}Variants§
Trait Implementations§
Source§impl Clone for AllocatedState
impl Clone for AllocatedState
Source§fn clone(&self) -> AllocatedState
fn clone(&self) -> AllocatedState
Returns a duplicate 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 AllocatedState
impl Debug for AllocatedState
Source§impl<'de> Deserialize<'de> for AllocatedState
impl<'de> Deserialize<'de> for AllocatedState
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<AllocatedState, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<AllocatedState, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for AllocatedState
impl Display for AllocatedState
Source§impl From<()> for AllocatedState
impl From<()> for AllocatedState
Source§fn from(v: ()) -> AllocatedState
fn from(v: ()) -> AllocatedState
Converts to this type from the input type.
Source§impl From<Allocation> for AllocatedState
impl From<Allocation> for AllocatedState
Source§fn from(v: Allocation) -> AllocatedState
fn from(v: Allocation) -> AllocatedState
Converts to this type from the input type.
Source§impl From<Amount> for AllocatedState
impl From<Amount> for AllocatedState
Source§fn from(v: Amount) -> AllocatedState
fn from(v: Amount) -> AllocatedState
Converts to this type from the input type.
Source§impl From<RevealedData> for AllocatedState
impl From<RevealedData> for AllocatedState
Source§fn from(v: RevealedData) -> AllocatedState
fn from(v: RevealedData) -> AllocatedState
Converts to this type from the input type.
Source§impl From<RevealedValue> for AllocatedState
impl From<RevealedValue> for AllocatedState
Source§fn from(v: RevealedValue) -> AllocatedState
fn from(v: RevealedValue) -> AllocatedState
Converts to this type from the input type.
Source§impl From<VoidState> for AllocatedState
impl From<VoidState> for AllocatedState
Source§fn from(v: VoidState) -> AllocatedState
fn from(v: VoidState) -> AllocatedState
Converts to this type from the input type.
Source§impl Hash for AllocatedState
impl Hash for AllocatedState
Source§impl KnownState for AllocatedState
impl KnownState for AllocatedState
const IS_FUNGIBLE: bool = false
Source§impl Ord for AllocatedState
impl Ord for AllocatedState
Source§fn cmp(&self, other: &AllocatedState) -> Ordering
fn cmp(&self, other: &AllocatedState) -> 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 AllocatedState
impl PartialEq for AllocatedState
Source§impl PartialOrd for AllocatedState
impl PartialOrd for AllocatedState
Source§impl Serialize for AllocatedState
impl Serialize for AllocatedState
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 AllocatedState
impl StrictDecode for AllocatedState
fn strict_decode( reader: &mut impl TypedRead, ) -> Result<AllocatedState, DecodeError>
fn strict_read(reader: impl ReadRaw) -> Result<Self, DecodeError>
Source§impl StrictDumb for AllocatedState
impl StrictDumb for AllocatedState
fn strict_dumb() -> AllocatedState
Source§impl StrictEncode for AllocatedState
impl StrictEncode for AllocatedState
fn strict_encode<W>(&self, writer: W) -> Result<W, Error>where
W: TypedWrite,
fn strict_write(&self, writer: impl WriteRaw) -> Result<(), Error>
Source§impl StrictSum for AllocatedState
impl StrictSum for AllocatedState
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 AllocatedState
impl StrictType for AllocatedState
const STRICT_LIB_NAME: &'static str = LIB_NAME_RGB_OPS
fn strict_name() -> Option<TypeName>
Source§impl StrictUnion for AllocatedState
impl StrictUnion for AllocatedState
fn strict_type_info() -> TypeInfo<Self>
impl Eq for AllocatedState
impl StructuralPartialEq for AllocatedState
Auto Trait Implementations§
impl Freeze for AllocatedState
impl RefUnwindSafe for AllocatedState
impl Send for AllocatedState
impl Sync for AllocatedState
impl Unpin for AllocatedState
impl UnwindSafe for AllocatedState
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.