pub struct ChainCode(_);
Expand description
A chain code
Implementations
Trait Implementations
sourceimpl<'de> Deserialize<'de> for ChainCode
Available on crate feature serde
only.
impl<'de> Deserialize<'de> for ChainCode
Available on crate feature
serde
only.sourcefn 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
sourceimpl FromHex for ChainCode
impl FromHex for ChainCode
sourcefn from_byte_iter<I>(iter: I) -> Result<Self, Error>where
I: Iterator<Item = Result<u8, Error>> + ExactSizeIterator + DoubleEndedIterator,
fn from_byte_iter<I>(iter: I) -> Result<Self, Error>where
I: Iterator<Item = Result<u8, Error>> + ExactSizeIterator + DoubleEndedIterator,
Produces an object from a byte iterator.
sourceimpl Ord for ChainCode
impl Ord for ChainCode
1.21.0 · sourceconst fn max(self, other: Self) -> Selfwhere
Self: Sized,
const fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 · sourceconst fn min(self, other: Self) -> Selfwhere
Self: Sized,
const fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
1.50.0 · sourceconst fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
const fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialOrd<ChainCode> for ChainCode
impl PartialOrd<ChainCode> for ChainCode
sourcefn partial_cmp(&self, other: &ChainCode) -> Option<Ordering>
fn partial_cmp(&self, other: &ChainCode) -> Option<Ordering>
1.0.0 · sourceconst fn le(&self, other: &Rhs) -> bool
const fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for ChainCode
impl Eq for ChainCode
impl StructuralEq for ChainCode
impl StructuralPartialEq 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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more