[−][src]Struct lnpbp::rgb::contract::nodes::ContractId
Unique contract identifier equivalent to the contract genesis commitment hash
Implementations
impl ContractId
[src]
pub fn from_hash(inner: Hash<ContractIdTag>) -> ContractId
[src]
Create this type from the inner hash type.
pub fn as_hash(&self) -> Hash<ContractIdTag>
[src]
Convert this type into the inner hash type.
Trait Implementations
impl AsRef<[u8]> for ContractId
[src]
impl Borrow<[u8]> for ContractId
[src]
impl Clone for ContractId
[src]
pub fn clone(&self) -> ContractId
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl CommitEncodeWithStrategy for ContractId
[src]
type Strategy = UsingStrict
impl Copy for ContractId
[src]
impl Debug for ContractId
[src]
impl Default for ContractId
[src]
pub fn default() -> ContractId
[src]
impl Deref for ContractId
[src]
impl Display for ContractId
[src]
impl Eq for ContractId
[src]
impl From<ContractId> for Bech32
[src]
pub fn from(v: ContractId) -> Self
[src]
impl From<ContractId> for Hash<ContractIdTag>
[src]
pub fn from(hashtype: ContractId) -> Hash<ContractIdTag>
[src]
impl From<ContractId> for AssetId
[src]
pub fn from(id: ContractId) -> Self
[src]
impl From<Hash<ContractIdTag>> for ContractId
[src]
pub fn from(inner: Hash<ContractIdTag>) -> ContractId
[src]
impl FromStr for ContractId
[src]
type Err = Error
The associated error which can be returned from parsing.
pub fn from_str(s: &str) -> Result<ContractId, Self::Err>
[src]
impl Hash for ContractId
[src]
pub fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Hash for ContractId
[src]
type Engine = <Hash<ContractIdTag> 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<ContractIdTag> as Hash>::Inner
The byte array that represents the hash internally
pub const LEN: usize
[src]
pub const DISPLAY_BACKWARD: bool
[src]
pub fn engine() -> Self::Engine
[src]
pub fn from_engine(e: Self::Engine) -> Self
[src]
pub fn from_slice(sl: &[u8]) -> Result<ContractId, Error>
[src]
pub fn from_inner(inner: Self::Inner) -> Self
[src]
pub fn into_inner(self) -> Self::Inner
[src]
pub fn as_inner(&self) -> &Self::Inner
[src]
pub fn hash(data: &[u8]) -> Self
[src]
impl Index<Range<usize>> for ContractId
[src]
type Output = [u8]
The returned type after indexing.
pub fn index(&self, index: Range<usize>) -> &[u8]
[src]
impl Index<RangeFrom<usize>> for ContractId
[src]
type Output = [u8]
The returned type after indexing.
pub fn index(&self, index: RangeFrom<usize>) -> &[u8]
[src]
impl Index<RangeFull> for ContractId
[src]
type Output = [u8]
The returned type after indexing.
pub fn index(&self, index: RangeFull) -> &[u8]
[src]
impl Index<RangeTo<usize>> for ContractId
[src]
type Output = [u8]
The returned type after indexing.
pub fn index(&self, index: RangeTo<usize>) -> &[u8]
[src]
impl Index<usize> for ContractId
[src]
impl LowerHex for ContractId
[src]
impl Ord for ContractId
[src]
pub fn cmp(&self, other: &ContractId) -> Ordering
[src]
#[must_use]pub fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]
impl PartialEq<ContractId> for ContractId
[src]
pub fn eq(&self, other: &ContractId) -> bool
[src]
pub fn ne(&self, other: &ContractId) -> bool
[src]
impl PartialOrd<ContractId> for ContractId
[src]
pub fn partial_cmp(&self, other: &ContractId) -> Option<Ordering>
[src]
pub fn lt(&self, other: &ContractId) -> bool
[src]
pub fn le(&self, other: &ContractId) -> bool
[src]
pub fn gt(&self, other: &ContractId) -> bool
[src]
pub fn ge(&self, other: &ContractId) -> bool
[src]
impl Strategy for ContractId
[src]
type Strategy = HashFixedBytes
impl StructuralEq for ContractId
[src]
impl StructuralPartialEq for ContractId
[src]
impl TryFrom<Bech32> for ContractId
[src]
Auto Trait Implementations
impl RefUnwindSafe for ContractId
impl Send for ContractId
impl Sync for ContractId
impl Unpin for ContractId
impl UnwindSafe for ContractId
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Base32Len for T where
T: AsRef<[u8]>,
[src]
T: AsRef<[u8]>,
pub fn base32_len(&self) -> usize
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<'f, T> CheckBase32<Vec<u5, Global>> for T where
T: AsRef<[u8]>,
[src]
T: AsRef<[u8]>,
type Err = Error
Error type if conversion fails
pub fn check_base32(
self
) -> Result<Vec<u5, Global>, <T as CheckBase32<Vec<u5, Global>>>::Err>
[src]
self
) -> Result<Vec<u5, Global>, <T as CheckBase32<Vec<u5, Global>>>::Err>
impl<T> From<T> for T
[src]
impl<T> FromBech32 for T where
T: TryFrom<Bech32, Error = Error>,
[src]
T: TryFrom<Bech32, Error = Error>,
pub fn from_bech32(Bech32) -> Result<T, Error>
[src]
pub fn from_bech32_str(s: &str) -> Result<Self, Error>
[src]
impl<T> FromHex for T where
T: Hash,
[src]
T: Hash,
pub fn from_byte_iter<I>(iter: I) -> Result<T, Error> where
I: Iterator<Item = Result<u8, Error>> + ExactSizeIterator + DoubleEndedIterator,
[src]
I: Iterator<Item = Result<u8, Error>> + ExactSizeIterator + DoubleEndedIterator,
pub fn from_hex(s: &str) -> Result<Self, Error>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToBase32 for T where
T: AsRef<[u8]>,
[src]
T: AsRef<[u8]>,
pub fn write_base32<W>(
&self,
writer: &mut W
) -> Result<(), <W as WriteBase32>::Err> where
W: WriteBase32,
[src]
&self,
writer: &mut W
) -> Result<(), <W as WriteBase32>::Err> where
W: WriteBase32,
pub fn to_base32(&self) -> Vec<u5, Global>ⓘ
[src]
impl<T> ToBech32 for T where
T: Into<Bech32> + Clone,
[src]
T: Into<Bech32> + Clone,
impl<T> ToHex for T where
T: AsRef<[u8]>,
[src]
T: AsRef<[u8]>,
pub fn encode_hex<U>(&self) -> U where
U: FromIterator<char>,
[src]
U: FromIterator<char>,
pub fn encode_hex_upper<U>(&self) -> U where
U: FromIterator<char>,
[src]
U: FromIterator<char>,
impl<T> ToHex for T where
T: LowerHex,
[src]
T: LowerHex,
impl<T> ToHex for T where
T: LowerHex,
[src]
T: LowerHex,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,