Struct bpstd::ScriptHash 
source · pub struct ScriptHash(pub Array<u8, 20>);Tuple Fields§
§0: Array<u8, 20>Trait Implementations§
source§impl AsRef<[u8]> for ScriptHash
 
impl AsRef<[u8]> for ScriptHash
source§impl Borrow<[u8]> for ScriptHash
 
impl Borrow<[u8]> for ScriptHash
source§impl Clone for ScriptHash
 
impl Clone for ScriptHash
source§fn clone(&self) -> ScriptHash
 
fn clone(&self) -> ScriptHash
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from 
source. Read moresource§impl Debug for ScriptHash
 
impl Debug for ScriptHash
source§impl Display for ScriptHash
 
impl Display for ScriptHash
source§impl From<&RedeemScript> for ScriptHash
 
impl From<&RedeemScript> for ScriptHash
source§fn from(redeem_script: &RedeemScript) -> ScriptHash
 
fn from(redeem_script: &RedeemScript) -> ScriptHash
Converts to this type from the input type.
source§impl From<ScriptHash> for AddressPayload
 
impl From<ScriptHash> for AddressPayload
source§fn from(v: ScriptHash) -> AddressPayload
 
fn from(v: ScriptHash) -> AddressPayload
Converts to this type from the input type.
source§impl FromHex for ScriptHash
 
impl FromHex for ScriptHash
source§fn from_byte_iter<I>(iter: I) -> Result<ScriptHash, Error>
 
fn from_byte_iter<I>(iter: I) -> Result<ScriptHash, Error>
Produce an object from a byte iterator
source§impl FromStr for ScriptHash
 
impl FromStr for ScriptHash
source§impl Hash for ScriptHash
 
impl Hash for ScriptHash
source§impl Index<RangeFull> for ScriptHash
 
impl Index<RangeFull> for ScriptHash
source§impl Index<RangeInclusive<usize>> for ScriptHash
 
impl Index<RangeInclusive<usize>> for ScriptHash
§type Output = <Array<u8, 20> as Index<RangeInclusive<usize>>>::Output
 
type Output = <Array<u8, 20> as Index<RangeInclusive<usize>>>::Output
The returned type after indexing.
source§fn index(
    &self,
    index: RangeInclusive<usize>
) -> &<ScriptHash as Index<RangeInclusive<usize>>>::Output
 
fn index( &self, index: RangeInclusive<usize> ) -> &<ScriptHash as Index<RangeInclusive<usize>>>::Output
Performs the indexing (
container[index]) operation. Read moresource§impl Index<RangeToInclusive<usize>> for ScriptHash
 
impl Index<RangeToInclusive<usize>> for ScriptHash
§type Output = <Array<u8, 20> as Index<RangeInclusive<usize>>>::Output
 
type Output = <Array<u8, 20> as Index<RangeInclusive<usize>>>::Output
The returned type after indexing.
source§fn index(
    &self,
    index: RangeToInclusive<usize>
) -> &<ScriptHash as Index<RangeToInclusive<usize>>>::Output
 
fn index( &self, index: RangeToInclusive<usize> ) -> &<ScriptHash as Index<RangeToInclusive<usize>>>::Output
Performs the indexing (
container[index]) operation. Read moresource§impl Index<usize> for ScriptHash
 
impl Index<usize> for ScriptHash
source§impl LowerHex for ScriptHash
 
impl LowerHex for ScriptHash
source§impl Ord for ScriptHash
 
impl Ord for ScriptHash
source§fn cmp(&self, other: &ScriptHash) -> Ordering
 
fn cmp(&self, other: &ScriptHash) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
    Self: Sized,
 
fn max(self, other: Self) -> Selfwhere
    Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for ScriptHash
 
impl PartialEq for ScriptHash
source§fn eq(&self, other: &ScriptHash) -> bool
 
fn eq(&self, other: &ScriptHash) -> bool
This method tests for 
self and other values to be equal, and is used
by ==.source§impl PartialOrd for ScriptHash
 
impl PartialOrd for ScriptHash
source§fn partial_cmp(&self, other: &ScriptHash) -> Option<Ordering>
 
fn partial_cmp(&self, other: &ScriptHash) -> Option<Ordering>
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 StrictDecode for ScriptHash
 
impl StrictDecode for ScriptHash
fn strict_decode(reader: &mut impl TypedRead) -> Result<ScriptHash, DecodeError>
fn strict_read(reader: impl ReadRaw) -> Result<Self, DecodeError>
source§impl StrictDumb for ScriptHash
 
impl StrictDumb for ScriptHash
fn strict_dumb() -> ScriptHash
source§impl StrictEncode for ScriptHash
 
impl StrictEncode for ScriptHash
fn strict_encode<W>(&self, writer: W) -> Result<W, Error>where
    W: TypedWrite,
fn strict_write(&self, writer: impl WriteRaw) -> Result<(), Error>
source§impl StrictTuple for ScriptHash
 
impl StrictTuple for ScriptHash
const FIELD_COUNT: u8 = 1u8
fn strict_check_fields()
fn strict_type_info() -> TypeInfo<Self>
source§impl StrictType for ScriptHash
 
impl StrictType for ScriptHash
const STRICT_LIB_NAME: &'static str = LIB_NAME_BITCOIN
fn strict_name() -> Option<TypeName>
source§impl UpperHex for ScriptHash
 
impl UpperHex for ScriptHash
source§impl Wrapper for ScriptHash
 
impl Wrapper for ScriptHash
source§fn from_inner(inner: <ScriptHash as Wrapper>::Inner) -> ScriptHash
 
fn from_inner(inner: <ScriptHash as Wrapper>::Inner) -> ScriptHash
Instantiates wrapper type with the inner data
source§fn as_inner(&self) -> &<ScriptHash as Wrapper>::Inner
 
fn as_inner(&self) -> &<ScriptHash as Wrapper>::Inner
Returns reference to the inner representation for the wrapper type
source§fn into_inner(self) -> <ScriptHash as Wrapper>::Inner
 
fn into_inner(self) -> <ScriptHash as Wrapper>::Inner
Unwraps the wrapper returning the inner type
impl Copy for ScriptHash
impl Eq for ScriptHash
impl StrictProduct for ScriptHash
impl StructuralPartialEq for ScriptHash
Auto Trait Implementations§
impl Freeze for ScriptHash
impl RefUnwindSafe for ScriptHash
impl Send for ScriptHash
impl Sync for ScriptHash
impl Unpin for ScriptHash
impl UnwindSafe for ScriptHash
Blanket Implementations§
source§impl<T> Base32Len for T
 
impl<T> Base32Len for T
source§fn base32_len(&self) -> usize
 
fn base32_len(&self) -> usize
Calculate the base32 serialized length
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<Id, const LEN: usize, const REVERSE_STR: bool> ByteArray<LEN> for Id
 
impl<Id, const LEN: usize, const REVERSE_STR: bool> ByteArray<LEN> for Id
source§fn from_byte_array(val: impl Into<[u8; LEN]>) -> Id
 
fn from_byte_array(val: impl Into<[u8; LEN]>) -> Id
Constructs a wrapper type around a byte array.
source§fn from_slice(slice: impl AsRef<[u8]>) -> Result<Id, FromSliceError>
 
fn from_slice(slice: impl AsRef<[u8]>) -> Result<Id, FromSliceError>
Constructs a byte array from the slice. Errors if the slice length
doesn’t match 
LEN constant generic.source§fn from_slice_unsafe(slice: impl AsRef<[u8]>) -> Id
 
fn from_slice_unsafe(slice: impl AsRef<[u8]>) -> Id
Constructs a byte array from the slice. Expects the slice length
doesn’t match 
LEN constant generic. Read moresource§fn to_byte_array(&self) -> [u8; LEN]
 
fn to_byte_array(&self) -> [u8; LEN]
Returns a byte array representation stored in the wrapped type.
source§impl<T> CheckBase32<Vec<u5>> for T
 
impl<T> CheckBase32<Vec<u5>> for T
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.source§impl<T> ToBase32 for T
 
impl<T> ToBase32 for T
source§fn write_base32<W>(&self, writer: &mut W) -> Result<(), <W as WriteBase32>::Err>where
    W: WriteBase32,
 
fn write_base32<W>(&self, writer: &mut W) -> Result<(), <W as WriteBase32>::Err>where
    W: WriteBase32,
Encode as base32 and write it to the supplied writer
Implementations shouldn’t allocate.