[][src]Struct lnpbp::rgb::prelude::SchemaId

pub struct SchemaId(_);

Commitment-based schema identifier used for committing to the schema type

Implementations

impl SchemaId[src]

pub fn from_hash(inner: Hash<SchemaIdTag>) -> SchemaId[src]

Create this type from the inner hash type.

pub fn as_hash(&self) -> Hash<SchemaIdTag>[src]

Convert this type into the inner hash type.

Trait Implementations

impl AsRef<[u8]> for SchemaId[src]

impl Borrow<[u8]> for SchemaId[src]

impl Clone for SchemaId[src]

impl Copy for SchemaId[src]

impl Debug for SchemaId[src]

impl Default for SchemaId[src]

impl Deref for SchemaId[src]

type Target = [u8]

The resulting type after dereferencing.

impl Display for SchemaId[src]

impl Eq for SchemaId[src]

impl From<Hash<SchemaIdTag>> for SchemaId[src]

impl From<SchemaId> for Bech32[src]

impl From<SchemaId> for Hash<SchemaIdTag>[src]

impl FromStr for SchemaId[src]

type Err = Error

The associated error which can be returned from parsing.

impl Hash for SchemaId[src]

impl Hash for SchemaId[src]

type Engine = <Hash<SchemaIdTag> as Hash>::Engine

A hashing engine which bytes can be serialized into. It is expected to implement the io::Write trait, and to never return errors under any conditions. Read more

type Inner = <Hash<SchemaIdTag> as Hash>::Inner

The byte array that represents the hash internally

impl Index<Range<usize>> for SchemaId[src]

type Output = [u8]

The returned type after indexing.

impl Index<RangeFrom<usize>> for SchemaId[src]

type Output = [u8]

The returned type after indexing.

impl Index<RangeFull> for SchemaId[src]

type Output = [u8]

The returned type after indexing.

impl Index<RangeTo<usize>> for SchemaId[src]

type Output = [u8]

The returned type after indexing.

impl Index<usize> for SchemaId[src]

type Output = u8

The returned type after indexing.

impl LowerHex for SchemaId[src]

impl Ord for SchemaId[src]

impl PartialEq<SchemaId> for SchemaId[src]

impl PartialOrd<SchemaId> for SchemaId[src]

impl Strategy for SchemaId[src]

impl StructuralEq for SchemaId[src]

impl StructuralPartialEq for SchemaId[src]

impl TryFrom<Bech32> for SchemaId[src]

type Error = Error

The type returned in the event of a conversion error.

Auto Trait Implementations

Blanket Implementations

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

impl<T> Base32Len for T where
    T: AsRef<[u8]>, 
[src]

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

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

impl<'f, T> CheckBase32<Vec<u5>> for T where
    T: AsRef<[u8]>, 
[src]

type Err = Error

Error type if conversion fails

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

impl<T> FromBech32 for T where
    T: TryFrom<Bech32, Error = Error>, 
[src]

impl<T> FromHex for T where
    T: Hash
[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> ToBase32 for T where
    T: AsRef<[u8]>, 
[src]

impl<T> ToBech32 for T where
    T: Into<Bech32> + Clone
[src]

impl<T> ToHex for T where
    T: AsRef<[u8]>, 
[src]

impl<T> ToHex for T where
    T: LowerHex
[src]

pub fn to_hex(&self) -> String[src]

Outputs the hash in hexadecimal form

impl<T> ToHex for T where
    T: LowerHex
[src]

pub fn to_hex(&self) -> String[src]

Outputs the hash in hexadecimal form

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>,