#[non_exhaustive]pub enum WitnessId {
Bitcoin(Txid),
Liquid(Txid),
}Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Trait Implementations§
source§impl<'de> Deserialize<'de> for WitnessId
impl<'de> Deserialize<'de> for WitnessId
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<WitnessId, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<WitnessId, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Ord for WitnessId
impl Ord for WitnessId
source§impl PartialEq for WitnessId
impl PartialEq for WitnessId
source§impl PartialOrd for WitnessId
impl PartialOrd for WitnessId
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 WitnessId
impl Serialize for WitnessId
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 WitnessId
impl StrictDecode for WitnessId
fn strict_decode(reader: &mut impl TypedRead) -> Result<WitnessId, DecodeError>
fn strict_read(lim: usize, reader: impl Read) -> Result<Self, DecodeError>
source§impl StrictDumb for WitnessId
impl StrictDumb for WitnessId
fn strict_dumb() -> WitnessId
source§impl StrictEncode for WitnessId
impl StrictEncode for WitnessId
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 WitnessId
impl StrictSum for WitnessId
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 WitnessId
impl StrictType for WitnessId
const STRICT_LIB_NAME: &'static str = LIB_NAME_RGB
fn strict_name() -> Option<TypeName>
source§impl StrictUnion for WitnessId
impl StrictUnion for WitnessId
fn strict_type_info() -> TypeInfo<Self>
impl Copy for WitnessId
impl Eq for WitnessId
impl StructuralEq for WitnessId
impl StructuralPartialEq for WitnessId
Auto Trait Implementations§
impl RefUnwindSafe for WitnessId
impl Send for WitnessId
impl Sync for WitnessId
impl Unpin for WitnessId
impl UnwindSafe for WitnessId
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.