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
Source§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
Source§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§impl PartialOrd for ScriptHash
impl PartialOrd for ScriptHash
Source§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<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.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.