Enum rgbstd::StateCommitment
source · pub enum StateCommitment {
Void,
Fungible(ConcealedValue),
Structured(ConcealedData),
Attachment(ConcealedAttach),
}Variants§
Trait Implementations§
source§impl Clone for StateCommitment
impl Clone for StateCommitment
source§fn clone(&self) -> StateCommitment
fn clone(&self) -> StateCommitment
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 CommitEncode for StateCommitment
impl CommitEncode for StateCommitment
source§fn commit_encode(&self, e: &mut impl Write)
fn commit_encode(&self, e: &mut impl Write)
Encodes the data for the commitment by writing them directly into a
io::Write writer instancesource§impl ConfidentialState for StateCommitment
impl ConfidentialState for StateCommitment
fn state_type(&self) -> StateType
fn state_commitment(&self) -> StateCommitment
source§impl Debug for StateCommitment
impl Debug for StateCommitment
source§impl<'de> Deserialize<'de> for StateCommitment
impl<'de> Deserialize<'de> for StateCommitment
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<StateCommitment, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<StateCommitment, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Hash for StateCommitment
impl Hash for StateCommitment
source§impl PartialEq for StateCommitment
impl PartialEq for StateCommitment
source§fn eq(&self, other: &StateCommitment) -> bool
fn eq(&self, other: &StateCommitment) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for StateCommitment
impl Serialize for StateCommitment
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 StateCommitment
impl StrictDecode for StateCommitment
fn strict_decode( reader: &mut impl TypedRead ) -> Result<StateCommitment, DecodeError>
fn strict_read(lim: usize, reader: impl Read) -> Result<Self, DecodeError>
source§impl StrictDumb for StateCommitment
impl StrictDumb for StateCommitment
fn strict_dumb() -> StateCommitment
source§impl StrictEncode for StateCommitment
impl StrictEncode for StateCommitment
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 StateCommitment
impl StrictSum for StateCommitment
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 StateCommitment
impl StrictType for StateCommitment
const STRICT_LIB_NAME: &'static str = LIB_NAME_RGB
fn strict_name() -> Option<TypeName>
source§impl StrictUnion for StateCommitment
impl StrictUnion for StateCommitment
fn strict_type_info() -> TypeInfo<Self>
impl Copy for StateCommitment
impl Eq for StateCommitment
impl StructuralEq for StateCommitment
impl StructuralPartialEq for StateCommitment
Auto Trait Implementations§
impl RefUnwindSafe for StateCommitment
impl Send for StateCommitment
impl Sync for StateCommitment
impl Unpin for StateCommitment
impl UnwindSafe for StateCommitment
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.