[][src]Struct bitcoin::util::bip32::ChainCode

pub struct ChainCode(_);

A chain code

Methods

impl ChainCode[src]

pub fn as_ptr(&self) -> *const u8[src]

Converts the object to a raw pointer

pub fn as_mut_ptr(&mut self) -> *mut u8[src]

Converts the object to a mutable raw pointer

pub fn len(&self) -> usize[src]

Returns the length of the object as an array

pub fn is_empty(&self) -> bool[src]

Returns whether the object, as an array, is empty. Always false.

pub fn as_bytes(&self) -> &[u8; 32][src]

Returns the underlying bytes.

pub fn to_bytes(&self) -> [u8; 32][src]

Returns the underlying bytes.

pub fn into_bytes(self) -> [u8; 32][src]

Returns the underlying bytes.

Trait Implementations

impl<'a> From<&'a [u8]> for ChainCode[src]

impl Ord for ChainCode[src]

fn max(self, other: Self) -> Self1.21.0[src]

Compares and returns the maximum of two values. Read more

fn min(self, other: Self) -> Self1.21.0[src]

Compares and returns the minimum of two values. Read more

fn clamp(self, min: Self, max: Self) -> Self[src]

🔬 This is a nightly-only experimental API. (clamp)

Restrict a value to a certain interval. Read more

impl PartialOrd<ChainCode> for ChainCode[src]

#[must_use] fn lt(&self, other: &Rhs) -> bool1.0.0[src]

This method tests less than (for self and other) and is used by the < operator. Read more

#[must_use] fn le(&self, other: &Rhs) -> bool1.0.0[src]

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

#[must_use] fn gt(&self, other: &Rhs) -> bool1.0.0[src]

This method tests greater than (for self and other) and is used by the > operator. Read more

#[must_use] fn ge(&self, other: &Rhs) -> bool1.0.0[src]

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl Clone for ChainCode[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl PartialEq<ChainCode> for ChainCode[src]

#[must_use] fn ne(&self, other: &Rhs) -> bool1.0.0[src]

This method tests for !=.

impl Eq for ChainCode[src]

impl Copy for ChainCode[src]

impl Debug for ChainCode[src]

impl Display for ChainCode[src]

impl FromStr for ChainCode[src]

type Err = Error

The associated error which can be returned from parsing.

impl Index<usize> for ChainCode[src]

type Output = u8

The returned type after indexing.

impl Index<Range<usize>> for ChainCode[src]

type Output = [u8]

The returned type after indexing.

impl Index<RangeTo<usize>> for ChainCode[src]

type Output = [u8]

The returned type after indexing.

impl Index<RangeFrom<usize>> for ChainCode[src]

type Output = [u8]

The returned type after indexing.

impl Index<RangeFull> for ChainCode[src]

type Output = [u8]

The returned type after indexing.

impl Hash for ChainCode[src]

impl LowerHex for ChainCode[src]

impl FromHex for ChainCode[src]

fn from_hex(s: &str) -> Result<Self, Error>[src]

Produce an object from a hex string

Auto Trait Implementations

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> ToHex for T where
    T: LowerHex
[src]

fn to_hex(&self) -> String[src]

Outputs the hash in hexadecimal form

impl<T> FromHex for T where
    T: Hash
[src]

fn from_hex(s: &str) -> Result<Self, Error>[src]

Produce an object from a hex string