Struct bitcoin::hash_types::WPubkeyHash [−][src]
#[repr(transparent)]pub struct WPubkeyHash(_);
SegWit version of a public key hash.
Implementations
impl WPubkeyHash
[src]
impl WPubkeyHash
[src]Trait Implementations
impl Clone for WPubkeyHash
[src]
impl Clone for WPubkeyHash
[src]fn clone(&self) -> WPubkeyHash
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Default for WPubkeyHash
[src]
impl Default for WPubkeyHash
[src]fn default() -> WPubkeyHash
[src]
impl Deref for WPubkeyHash
[src]
impl Deref for WPubkeyHash
[src]impl<'de> Deserialize<'de> for WPubkeyHash
[src]
impl<'de> Deserialize<'de> for WPubkeyHash
[src]fn deserialize<D: Deserializer<'de>>(d: D) -> Result<WPubkeyHash, D::Error>
[src]
impl From<Hash> for WPubkeyHash
[src]
impl From<Hash> for WPubkeyHash
[src]fn from(inner: Hash) -> WPubkeyHash
[src]
impl From<WPubkeyHash> for Hash
[src]
impl From<WPubkeyHash> for Hash
[src]fn from(hashtype: WPubkeyHash) -> Hash
[src]
impl FromStr for WPubkeyHash
[src]
impl FromStr for WPubkeyHash
[src]impl Hash for WPubkeyHash
[src]
impl Hash for WPubkeyHash
[src]impl Hash for WPubkeyHash
[src]
impl Hash for WPubkeyHash
[src]type Engine = <Hash 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 as Hash>::Inner
The byte array that represents the hash internally
const LEN: usize
[src]
const DISPLAY_BACKWARD: bool
[src]
fn engine() -> Self::Engine
[src]
fn from_engine(e: Self::Engine) -> Self
[src]
fn from_slice(sl: &[u8]) -> Result<WPubkeyHash, Error>
[src]
fn from_inner(inner: Self::Inner) -> Self
[src]
fn into_inner(self) -> Self::Inner
[src]
fn as_inner(&self) -> &Self::Inner
[src]
pub fn hash(data: &[u8]) -> Self
[src]
impl Index<Range<usize>> for WPubkeyHash
[src]
impl Index<Range<usize>> for WPubkeyHash
[src]impl Index<RangeFrom<usize>> for WPubkeyHash
[src]
impl Index<RangeFrom<usize>> for WPubkeyHash
[src]impl Index<RangeFull> for WPubkeyHash
[src]
impl Index<RangeFull> for WPubkeyHash
[src]impl Index<RangeTo<usize>> for WPubkeyHash
[src]
impl Index<RangeTo<usize>> for WPubkeyHash
[src]impl Index<usize> for WPubkeyHash
[src]
impl Index<usize> for WPubkeyHash
[src]impl Ord for WPubkeyHash
[src]
impl Ord for WPubkeyHash
[src]impl PartialEq<WPubkeyHash> for WPubkeyHash
[src]
impl PartialEq<WPubkeyHash> for WPubkeyHash
[src]fn eq(&self, other: &WPubkeyHash) -> bool
[src]
fn ne(&self, other: &WPubkeyHash) -> bool
[src]
impl PartialOrd<WPubkeyHash> for WPubkeyHash
[src]
impl PartialOrd<WPubkeyHash> for WPubkeyHash
[src]impl SerdeHash for WPubkeyHash
[src]
impl SerdeHash for WPubkeyHash
[src]const N: usize
[src]
fn from_slice_delegated(sl: &[u8]) -> Result<Self, Error>
[src]
pub fn serialize<S>(
&self,
s: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
[src]
&self,
s: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
pub fn deserialize<'de, D>(
d: D
) -> Result<Self, <D as Deserializer<'de>>::Error> where
D: Deserializer<'de>,
[src]
d: D
) -> Result<Self, <D as Deserializer<'de>>::Error> where
D: Deserializer<'de>,
impl Serialize for WPubkeyHash
[src]
impl Serialize for WPubkeyHash
[src]impl Copy for WPubkeyHash
[src]
impl Eq for WPubkeyHash
[src]
impl StructuralEq for WPubkeyHash
[src]
impl StructuralPartialEq for WPubkeyHash
[src]
Auto Trait Implementations
impl RefUnwindSafe for WPubkeyHash
impl Send for WPubkeyHash
impl Sync for WPubkeyHash
impl Unpin for WPubkeyHash
impl UnwindSafe for WPubkeyHash
Blanket Implementations
impl<T> FromHex for T where
T: Hash,
[src]
impl<T> FromHex for T where
T: Hash,
[src]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> ToBase32 for T where
T: AsRef<[u8]>,
[src]
impl<T> ToBase32 for T where
T: AsRef<[u8]>,
[src]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> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,