Struct bitcoin::util::bip32::ChainCode [−][src]
pub struct ChainCode(_);
A chain code
Implementations
impl ChainCode
[src]
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<'de> Deserialize<'de> for ChainCode
[src]
impl<'de> Deserialize<'de> for ChainCode
[src]fn deserialize<D: Deserializer<'de>>(d: D) -> Result<ChainCode, D::Error>
[src]
impl FromHex for ChainCode
[src]
impl FromHex for ChainCode
[src]fn from_byte_iter<I>(iter: I) -> Result<Self, 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 PartialOrd<ChainCode> for ChainCode
[src]
impl PartialOrd<ChainCode> for ChainCode
[src]impl Copy for ChainCode
[src]
impl Eq for ChainCode
[src]
impl StructuralEq for ChainCode
[src]
impl StructuralPartialEq for ChainCode
[src]
Auto Trait Implementations
impl RefUnwindSafe for ChainCode
impl Send for ChainCode
impl Sync for ChainCode
impl Unpin for ChainCode
impl UnwindSafe for ChainCode
Blanket Implementations
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,