[−][src]Struct grin_keychain::extkey_bip32::ChainCode
A chain code
Methods
impl ChainCode
pub fn as_ptr(&self) -> *const u8
Converts the object to a raw pointer
pub fn as_mut_ptr(&mut self) -> *mut u8
Converts the object to a mutable raw pointer
pub fn len(&self) -> usize
Returns the length of the object as an array
pub fn is_empty(&self) -> bool
Returns whether the object, as an array, is empty. Always false.
pub fn as_bytes(&self) -> &[u8; 32]
Returns the underlying bytes.
pub fn to_bytes(&self) -> [u8; 32]
Returns the underlying bytes.
pub fn into_bytes(self) -> [u8; 32]
Returns the underlying bytes.
Trait Implementations
impl Clone for ChainCode
fn clone(&self) -> ChainCode
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for ChainCode
impl Debug for ChainCode
impl Eq for ChainCode
impl<'a> From<&'a [u8]> for ChainCode
impl Hash for ChainCode
fn hash<H>(&self, state: &mut H) where
H: Hasher,
H: Hasher,
fn hash_slice<H>(data: &[ChainCode], state: &mut H) where
H: Hasher,
H: Hasher,
impl Index<Range<usize>> for ChainCode
impl Index<RangeFrom<usize>> for ChainCode
type Output = [u8]
The returned type after indexing.
fn index(&self, index: RangeFrom<usize>) -> &[u8]
impl Index<RangeFull> for ChainCode
impl Index<RangeTo<usize>> for ChainCode
impl Index<usize> for ChainCode
impl Ord for ChainCode
fn cmp(&self, other: &ChainCode) -> Ordering
#[must_use]
fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]
fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]
fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<ChainCode> for ChainCode
impl PartialOrd<ChainCode> for ChainCode
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> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> CloneAny for T where
T: Clone + Any,
T: Clone + Any,
fn clone_any(&self) -> Box<dyn CloneAny + 'static>
fn clone_any_send(&self) -> Box<dyn CloneAny + 'static + Send> where
T: Send,
T: Send,
fn clone_any_sync(&self) -> Box<dyn CloneAny + 'static + Sync> where
T: Sync,
T: Sync,
fn clone_any_send_sync(&self) -> Box<dyn CloneAny + 'static + Send + Sync> where
T: Send + Sync,
T: Send + Sync,
impl<T> DebugAny for T where
T: Any + Debug,
T: Any + Debug,
impl<T> Erased for T
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> UnsafeAny for T where
T: Any,
T: Any,