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