#[repr(u8)]pub enum Layer1 {
Bitcoin = 0,
Liquid = 1,
}Variants§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Layer1
impl<'de> Deserialize<'de> for Layer1
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Layer1, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Layer1, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Ord for Layer1
impl Ord for Layer1
Source§impl PartialOrd for Layer1
impl PartialOrd for Layer1
Source§impl Serialize for Layer1
impl Serialize for Layer1
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 Layer1
impl StrictDecode for Layer1
fn strict_decode(reader: &mut impl TypedRead) -> Result<Layer1, DecodeError>
fn strict_read(reader: impl ReadRaw) -> Result<Self, DecodeError>
Source§impl StrictEncode for Layer1
impl StrictEncode for Layer1
fn strict_encode<W>(&self, writer: W) -> Result<W, Error>where
W: TypedWrite,
fn strict_write(&self, writer: impl WriteRaw) -> Result<(), Error>
Source§impl StrictEnum for Layer1
impl StrictEnum for Layer1
fn from_variant_name( name: &VariantName, ) -> Result<Self, VariantError<&VariantName>>
fn strict_type_info() -> TypeInfo<Self>
Source§impl StrictSum for Layer1
impl StrictSum for Layer1
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 Layer1
impl StrictType for Layer1
const STRICT_LIB_NAME: &'static str = LIB_NAME_RGB_LOGIC
fn strict_name() -> Option<TypeName>
impl Copy for Layer1
impl Eq for Layer1
impl StructuralPartialEq for Layer1
Auto Trait Implementations§
impl Freeze for Layer1
impl RefUnwindSafe for Layer1
impl Send for Layer1
impl Sync for Layer1
impl Unpin for Layer1
impl UnwindSafe for Layer1
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.