Struct clarity_repl::clarity::util::hash::DoubleSha256
source · [−]Tuple Fields
0: [u8; 32]
Implementations
sourceimpl DoubleSha256
impl DoubleSha256
sourceimpl DoubleSha256
impl DoubleSha256
sourcepub fn from_hex(hex_str: &str) -> Result<DoubleSha256, HexError>
pub fn from_hex(hex_str: &str) -> Result<DoubleSha256, HexError>
Instantiates from a hex string
sourcepub fn from_bytes(inp: &[u8]) -> Option<DoubleSha256>
pub fn from_bytes(inp: &[u8]) -> Option<DoubleSha256>
Instantiates from a slice of bytes
sourcepub fn from_bytes_be(inp: &[u8]) -> Option<DoubleSha256>
pub fn from_bytes_be(inp: &[u8]) -> Option<DoubleSha256>
Instantiates from a slice of bytes, converting to host byte order
sourcepub fn from_vec_be(b: &Vec<u8>) -> Option<DoubleSha256>
pub fn from_vec_be(b: &Vec<u8>) -> Option<DoubleSha256>
Instantiates from a big-endian vector of bytes, converting to host byte order
sourceimpl DoubleSha256
impl DoubleSha256
pub fn from_data(data: &[u8]) -> DoubleSha256
Trait Implementations
sourceimpl AsRef<[u8]> for DoubleSha256
impl AsRef<[u8]> for DoubleSha256
sourceimpl Clone for DoubleSha256
impl Clone for DoubleSha256
sourcefn clone(&self) -> DoubleSha256
fn clone(&self) -> DoubleSha256
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 DoubleSha256
impl Debug for DoubleSha256
sourceimpl Display for DoubleSha256
impl Display for DoubleSha256
sourceimpl<'a> From<&'a [u8]> for DoubleSha256
impl<'a> From<&'a [u8]> for DoubleSha256
sourcefn from(data: &'a [u8]) -> DoubleSha256
fn from(data: &'a [u8]) -> DoubleSha256
Converts to this type from the input type.
sourceimpl Hash for DoubleSha256
impl Hash for DoubleSha256
sourceimpl Index<Range<usize>> for DoubleSha256
impl Index<Range<usize>> for DoubleSha256
sourceimpl Index<RangeFrom<usize>> for DoubleSha256
impl Index<RangeFrom<usize>> for DoubleSha256
sourceimpl Index<RangeFull> for DoubleSha256
impl Index<RangeFull> for DoubleSha256
sourceimpl Index<RangeTo<usize>> for DoubleSha256
impl Index<RangeTo<usize>> for DoubleSha256
sourceimpl Index<usize> for DoubleSha256
impl Index<usize> for DoubleSha256
sourceimpl Ord for DoubleSha256
impl Ord for DoubleSha256
sourcefn cmp(&self, other: &DoubleSha256) -> Ordering
fn cmp(&self, other: &DoubleSha256) -> Ordering
1.21.0 · sourcefn max(self, other: Self) -> Self
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Self
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<DoubleSha256> for DoubleSha256
impl PartialEq<DoubleSha256> for DoubleSha256
sourcefn eq(&self, other: &DoubleSha256) -> bool
fn eq(&self, other: &DoubleSha256) -> bool
sourceimpl PartialOrd<DoubleSha256> for DoubleSha256
impl PartialOrd<DoubleSha256> for DoubleSha256
sourcefn partial_cmp(&self, other: &DoubleSha256) -> Option<Ordering>
fn partial_cmp(&self, other: &DoubleSha256) -> 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 moreimpl Copy for DoubleSha256
impl Eq for DoubleSha256
Auto Trait Implementations
impl RefUnwindSafe for DoubleSha256
impl Send for DoubleSha256
impl Sync for DoubleSha256
impl Unpin for DoubleSha256
impl UnwindSafe for DoubleSha256
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