[][src]Enum lnpbp::bp::chain::ChainFormat

#[non_exhaustive]
#[repr(u8)]pub enum ChainFormat {
    Bitcoin,
    Elements,
}

Enum identifying format for transaction & block structure in a given chain. Right now only two structures are supported: Bitcoin format and Elements format, extended with confidential transaction-specific structures.

Variants (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.
Bitcoin

Bitcoin standard format (bitcoin networks, litecoin)

Elements

Confidential transactions format

Trait Implementations

impl Clone for ChainFormat[src]

impl Copy for ChainFormat[src]

impl Debug for ChainFormat[src]

impl Display for ChainFormat[src]

impl Eq for ChainFormat[src]

impl FromPrimitive for ChainFormat[src]

impl Hash for ChainFormat[src]

impl Ord for ChainFormat[src]

impl PartialEq<ChainFormat> for ChainFormat[src]

impl PartialOrd<ChainFormat> for ChainFormat[src]

impl StrictDecode for ChainFormat[src]

type Error = Error

Implementation-dependent error type

impl StrictEncode for ChainFormat[src]

type Error = Error

Implementation-dependent error type

impl StructuralEq for ChainFormat[src]

impl StructuralPartialEq for ChainFormat[src]

impl ToPrimitive for ChainFormat[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,