Struct bitcoin::hash_types::WitnessMerkleNode [−][src]
#[repr(transparent)]pub struct WitnessMerkleNode(_);
A hash corresponding to the Merkle tree root for witness data
Implementations
impl WitnessMerkleNode
[src]
impl WitnessMerkleNode
[src]Trait Implementations
impl Clone for WitnessMerkleNode
[src]
impl Clone for WitnessMerkleNode
[src]fn clone(&self) -> WitnessMerkleNode
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Decodable for WitnessMerkleNode
[src]
impl Decodable for WitnessMerkleNode
[src]fn consensus_decode<D: Read>(d: D) -> Result<Self, Error>
[src]
impl Default for WitnessMerkleNode
[src]
impl Default for WitnessMerkleNode
[src]fn default() -> WitnessMerkleNode
[src]
impl Deref for WitnessMerkleNode
[src]
impl Deref for WitnessMerkleNode
[src]impl<'de> Deserialize<'de> for WitnessMerkleNode
[src]
impl<'de> Deserialize<'de> for WitnessMerkleNode
[src]fn deserialize<D: Deserializer<'de>>(
d: D
) -> Result<WitnessMerkleNode, D::Error>
[src]
d: D
) -> Result<WitnessMerkleNode, D::Error>
impl Encodable for WitnessMerkleNode
[src]
impl Encodable for WitnessMerkleNode
[src]impl From<Hash> for WitnessMerkleNode
[src]
impl From<Hash> for WitnessMerkleNode
[src]fn from(inner: Hash) -> WitnessMerkleNode
[src]
impl From<WitnessMerkleNode> for Hash
[src]
impl From<WitnessMerkleNode> for Hash
[src]fn from(hashtype: WitnessMerkleNode) -> Hash
[src]
impl FromStr for WitnessMerkleNode
[src]
impl FromStr for WitnessMerkleNode
[src]impl Hash for WitnessMerkleNode
[src]
impl Hash for WitnessMerkleNode
[src]impl Hash for WitnessMerkleNode
[src]
impl Hash for WitnessMerkleNode
[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<WitnessMerkleNode, 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 WitnessMerkleNode
[src]
impl Index<Range<usize>> for WitnessMerkleNode
[src]impl Index<RangeFrom<usize>> for WitnessMerkleNode
[src]
impl Index<RangeFrom<usize>> for WitnessMerkleNode
[src]impl Index<RangeFull> for WitnessMerkleNode
[src]
impl Index<RangeFull> for WitnessMerkleNode
[src]impl Index<RangeTo<usize>> for WitnessMerkleNode
[src]
impl Index<RangeTo<usize>> for WitnessMerkleNode
[src]impl Index<usize> for WitnessMerkleNode
[src]
impl Index<usize> for WitnessMerkleNode
[src]impl Ord for WitnessMerkleNode
[src]
impl Ord for WitnessMerkleNode
[src]impl PartialEq<WitnessMerkleNode> for WitnessMerkleNode
[src]
impl PartialEq<WitnessMerkleNode> for WitnessMerkleNode
[src]fn eq(&self, other: &WitnessMerkleNode) -> bool
[src]
fn ne(&self, other: &WitnessMerkleNode) -> bool
[src]
impl PartialOrd<WitnessMerkleNode> for WitnessMerkleNode
[src]
impl PartialOrd<WitnessMerkleNode> for WitnessMerkleNode
[src]fn partial_cmp(&self, other: &WitnessMerkleNode) -> Option<Ordering>
[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
pub fn lt(&self, other: &Rhs) -> bool#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
pub fn le(&self, other: &Rhs) -> bool#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
pub fn gt(&self, other: &Rhs) -> bool#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
pub fn ge(&self, other: &Rhs) -> boolimpl SerdeHash for WitnessMerkleNode
[src]
impl SerdeHash for WitnessMerkleNode
[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 WitnessMerkleNode
[src]
impl Serialize for WitnessMerkleNode
[src]impl Copy for WitnessMerkleNode
[src]
impl Eq for WitnessMerkleNode
[src]
impl StructuralEq for WitnessMerkleNode
[src]
impl StructuralPartialEq for WitnessMerkleNode
[src]
Auto Trait Implementations
impl RefUnwindSafe for WitnessMerkleNode
impl Send for WitnessMerkleNode
impl Sync for WitnessMerkleNode
impl Unpin for WitnessMerkleNode
impl UnwindSafe for WitnessMerkleNode
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>,