pub struct ChainCode(/* private fields */);Expand description
A chain code
Implementations§
Source§impl ChainCode
impl ChainCode
Sourcepub fn from_byte_array(bytes: [u8; 32]) -> Self
pub fn from_byte_array(bytes: [u8; 32]) -> Self
Constructs a new Self by wrapping bytes.
Sourcepub fn as_byte_array(&self) -> &[u8; 32]
pub fn as_byte_array(&self) -> &[u8; 32]
Returns a reference the underlying byte array.
Sourcepub fn to_byte_array(self) -> [u8; 32]
pub fn to_byte_array(self) -> [u8; 32]
Returns the underlying byte array.
Sourcepub fn as_mut_ptr(&mut self) -> *mut u8
pub fn as_mut_ptr(&mut self) -> *mut u8
Converts the object to a mutable raw pointer.
Trait Implementations§
Source§impl<'a> Arbitrary<'a> for ChainCode
Available on crate feature arbitrary only.
impl<'a> Arbitrary<'a> for ChainCode
Available on crate feature
arbitrary only.Source§fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self>
fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self>
Generate an arbitrary value of
Self from the given unstructured data. Read moreSource§fn arbitrary_take_rest(u: Unstructured<'a>) -> Result<Self, Error>
fn arbitrary_take_rest(u: Unstructured<'a>) -> Result<Self, Error>
Generate an arbitrary value of
Self from the entirety of the given
unstructured data. Read moreSource§fn size_hint(depth: usize) -> (usize, Option<usize>)
fn size_hint(depth: usize) -> (usize, Option<usize>)
Get a size hint for how many bytes out of an
Unstructured this type
needs to construct itself. Read moreSource§fn try_size_hint(
depth: usize,
) -> Result<(usize, Option<usize>), MaxRecursionReached>
fn try_size_hint( depth: usize, ) -> Result<(usize, Option<usize>), MaxRecursionReached>
Get a size hint for how many bytes out of an
Unstructured this type
needs to construct itself. Read moreimpl Copy for ChainCode
Source§impl<'de> Deserialize<'de> for ChainCode
Available on crate feature serde only.
impl<'de> Deserialize<'de> for ChainCode
Available on crate feature
serde only.Source§fn deserialize<D: Deserializer<'de>>(d: D) -> Result<ChainCode, D::Error>
fn deserialize<D: Deserializer<'de>>(d: D) -> Result<ChainCode, D::Error>
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ChainCode
Source§impl Ord for ChainCode
impl Ord for ChainCode
1.21.0 (const: unstable) · 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 PartialOrd for ChainCode
impl PartialOrd for ChainCode
impl StructuralPartialEq for ChainCode
Auto Trait Implementations§
impl Freeze for ChainCode
impl RefUnwindSafe for ChainCode
impl Send for ChainCode
impl Sync for ChainCode
impl Unpin for ChainCode
impl UnsafeUnpin for ChainCode
impl UnwindSafe for ChainCode
Blanket Implementations§
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