Struct bp::short_id::BlockChecksum
source · pub struct BlockChecksum(_);Expand description
Checksum for block id data used by the LNPBP-5
Trait Implementations
sourceimpl AsMut<<BlockChecksum as Wrapper>::Inner> for BlockChecksum
impl AsMut<<BlockChecksum as Wrapper>::Inner> for BlockChecksum
sourceimpl AsRef<<BlockChecksum as Wrapper>::Inner> for BlockChecksum
impl AsRef<<BlockChecksum as Wrapper>::Inner> for BlockChecksum
sourceimpl Borrow<<BlockChecksum as Wrapper>::Inner> for BlockChecksum
impl Borrow<<BlockChecksum as Wrapper>::Inner> for BlockChecksum
sourceimpl BorrowMut<<BlockChecksum as Wrapper>::Inner> for BlockChecksum
impl BorrowMut<<BlockChecksum as Wrapper>::Inner> for BlockChecksum
sourcefn borrow_mut(&mut self) -> &mut <Self as Wrapper>::Inner
fn borrow_mut(&mut self) -> &mut <Self as Wrapper>::Inner
Mutably borrows from an owned value. Read more
sourceimpl Clone for BlockChecksum
impl Clone for BlockChecksum
sourcefn clone(&self) -> BlockChecksum
fn clone(&self) -> BlockChecksum
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for BlockChecksum
impl Debug for BlockChecksum
sourceimpl Default for BlockChecksum
impl Default for BlockChecksum
sourcefn default() -> BlockChecksum
fn default() -> BlockChecksum
Returns the “default value” for a type. Read more
sourceimpl Deref for BlockChecksum
impl Deref for BlockChecksum
sourceimpl DerefMut for BlockChecksum
impl DerefMut for BlockChecksum
sourceimpl Display for BlockChecksum
impl Display for BlockChecksum
sourceimpl From<BlockChecksum> for u8
impl From<BlockChecksum> for u8
sourcefn from(wrapped: BlockChecksum) -> Self
fn from(wrapped: BlockChecksum) -> Self
Converts to this type from the input type.
sourceimpl From<BlockHash> for BlockChecksum
impl From<BlockHash> for BlockChecksum
sourceimpl From<u8> for BlockChecksum
impl From<u8> for BlockChecksum
sourceimpl FromStr for BlockChecksum
impl FromStr for BlockChecksum
sourceimpl Hash for BlockChecksum
impl Hash for BlockChecksum
sourceimpl LowerHex for BlockChecksum
impl LowerHex for BlockChecksum
sourceimpl Octal for BlockChecksum
impl Octal for BlockChecksum
sourceimpl Ord for BlockChecksum
impl Ord for BlockChecksum
sourcefn cmp(&self, other: &BlockChecksum) -> Ordering
fn cmp(&self, other: &BlockChecksum) -> Ordering
1.21.0 · sourcefn 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
1.21.0 · sourcefn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<BlockChecksum> for BlockChecksum
impl PartialEq<BlockChecksum> for BlockChecksum
sourcefn eq(&self, other: &BlockChecksum) -> bool
fn eq(&self, other: &BlockChecksum) -> bool
sourceimpl PartialOrd<BlockChecksum> for BlockChecksum
impl PartialOrd<BlockChecksum> for BlockChecksum
sourcefn partial_cmp(&self, other: &BlockChecksum) -> Option<Ordering>
fn partial_cmp(&self, other: &BlockChecksum) -> Option<Ordering>
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
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 moresourceimpl UpperHex for BlockChecksum
impl UpperHex for BlockChecksum
sourceimpl Wrapper for BlockChecksum
impl Wrapper for BlockChecksum
sourcefn from_inner(inner: Self::Inner) -> Self
fn from_inner(inner: Self::Inner) -> Self
Instantiates wrapper type with the inner data
sourcefn as_inner(&self) -> &Self::Inner
fn as_inner(&self) -> &Self::Inner
Returns reference to the inner representation for the wrapper type
sourcefn as_inner_mut(&mut self) -> &mut Self::Inner
fn as_inner_mut(&mut self) -> &mut Self::Inner
Returns a mutable reference to the inner representation for the wrapper
type Read more
sourcefn into_inner(self) -> Self::Inner
fn into_inner(self) -> Self::Inner
Unwraps the wrapper returning the inner type
impl Copy for BlockChecksum
impl Eq for BlockChecksum
impl StructuralEq for BlockChecksum
impl StructuralPartialEq for BlockChecksum
Auto Trait Implementations
impl RefUnwindSafe for BlockChecksum
impl Send for BlockChecksum
impl Sync for BlockChecksum
impl Unpin for BlockChecksum
impl UnwindSafe for BlockChecksum
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