Enum rgbstd::contract::seal::SealWitness
source · pub enum SealWitness {
Genesis,
Present(Txid),
Extension,
}Variants§
Trait Implementations§
source§impl Clone for SealWitness
impl Clone for SealWitness
source§fn clone(&self) -> SealWitness
fn clone(&self) -> SealWitness
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 SealWitness
impl Debug for SealWitness
source§impl<'de> Deserialize<'de> for SealWitness
impl<'de> Deserialize<'de> for SealWitness
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<SealWitness, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<SealWitness, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Display for SealWitness
impl Display for SealWitness
source§impl Ord for SealWitness
impl Ord for SealWitness
source§fn cmp(&self, other: &SealWitness) -> Ordering
fn cmp(&self, other: &SealWitness) -> 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<SealWitness> for SealWitness
impl PartialEq<SealWitness> for SealWitness
source§fn eq(&self, other: &SealWitness) -> bool
fn eq(&self, other: &SealWitness) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd<SealWitness> for SealWitness
impl PartialOrd<SealWitness> for SealWitness
source§fn partial_cmp(&self, other: &SealWitness) -> Option<Ordering>
fn partial_cmp(&self, other: &SealWitness) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moresource§impl Serialize for SealWitness
impl Serialize for SealWitness
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 SealWitness
impl StrictDecode for SealWitness
fn strict_decode( reader: &mut impl TypedRead ) -> Result<SealWitness, DecodeError>
source§impl StrictDumb for SealWitness
impl StrictDumb for SealWitness
fn strict_dumb() -> SealWitness
source§impl StrictEncode for SealWitness
impl StrictEncode for SealWitness
fn strict_encode<W>(&self, writer: W) -> Result<W, Error>where W: TypedWrite,
source§impl StrictSum for SealWitness
impl StrictSum for SealWitness
const ALL_VARIANTS: &'static [(u8, &'static str)] = &[(0 as u8, "genesis"), (1 as u8, "present"), (2 as u8, "extension")]
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 SealWitness
impl StrictType for SealWitness
const STRICT_LIB_NAME: &'static str = LIB_NAME_RGB
fn strict_name() -> Option<TypeName>
source§impl StrictUnion for SealWitness
impl StrictUnion for SealWitness
fn strict_type_info() -> TypeInfo<Self>
impl Copy for SealWitness
impl Eq for SealWitness
impl StructuralEq for SealWitness
impl StructuralPartialEq for SealWitness
Auto Trait Implementations§
impl RefUnwindSafe for SealWitness
impl Send for SealWitness
impl Sync for SealWitness
impl Unpin for SealWitness
impl UnwindSafe for SealWitness
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<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,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.