Struct clarity_repl::clarity::util::hash::Sha512Trunc256Sum
pub struct Sha512Trunc256Sum(pub [u8; 32]);
Tuple Fields§
§0: [u8; 32]
Implementations§
§impl Sha512Trunc256Sum
impl Sha512Trunc256Sum
pub fn as_mut_ptr(&mut self) -> *mut u8
pub fn as_mut_ptr(&mut self) -> *mut u8
Converts the object to a mutable raw pointer
pub fn into_bytes(self) -> [u8; 32]
pub fn into_bytes(self) -> [u8; 32]
Returns the underlying bytes.
§impl Sha512Trunc256Sum
impl Sha512Trunc256Sum
pub fn from_hex(hex_str: &str) -> Result<Sha512Trunc256Sum, HexError>
pub fn from_hex(hex_str: &str) -> Result<Sha512Trunc256Sum, HexError>
Instantiates from a hex string
pub fn from_bytes(inp: &[u8]) -> Option<Sha512Trunc256Sum>
pub fn from_bytes(inp: &[u8]) -> Option<Sha512Trunc256Sum>
Instantiates from a slice of bytes
pub fn from_bytes_be(inp: &[u8]) -> Option<Sha512Trunc256Sum>
pub fn from_bytes_be(inp: &[u8]) -> Option<Sha512Trunc256Sum>
Instantiates from a slice of bytes, converting to host byte order
pub fn from_vec(inp: &Vec<u8>) -> Option<Sha512Trunc256Sum>
pub fn from_vec(inp: &Vec<u8>) -> Option<Sha512Trunc256Sum>
Instantiates from a vector of bytes
pub fn from_vec_be(b: &Vec<u8>) -> Option<Sha512Trunc256Sum>
pub fn from_vec_be(b: &Vec<u8>) -> Option<Sha512Trunc256Sum>
Instantiates from a big-endian vector of bytes, converting to host byte order
§impl Sha512Trunc256Sum
impl Sha512Trunc256Sum
pub fn from_data(data: &[u8]) -> Sha512Trunc256Sum
pub fn from_hasher( hasher: CoreWrapper<CtVariableCoreWrapper<Sha512VarCore, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>, OidSha512_256>> ) -> Sha512Trunc256Sum
Trait Implementations§
§impl AsRef<[u8]> for Sha512Trunc256Sum
impl AsRef<[u8]> for Sha512Trunc256Sum
§impl Clone for Sha512Trunc256Sum
impl Clone for Sha512Trunc256Sum
§fn clone(&self) -> Sha512Trunc256Sum
fn clone(&self) -> Sha512Trunc256Sum
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more§impl Debug for Sha512Trunc256Sum
impl Debug for Sha512Trunc256Sum
§impl<'de> Deserialize<'de> for Sha512Trunc256Sum
impl<'de> Deserialize<'de> for Sha512Trunc256Sum
§fn deserialize<__D>(
__deserializer: __D
) -> Result<Sha512Trunc256Sum, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<Sha512Trunc256Sum, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl Display for Sha512Trunc256Sum
impl Display for Sha512Trunc256Sum
§impl<'a> From<&'a [u8]> for Sha512Trunc256Sum
impl<'a> From<&'a [u8]> for Sha512Trunc256Sum
§fn from(data: &'a [u8]) -> Sha512Trunc256Sum
fn from(data: &'a [u8]) -> Sha512Trunc256Sum
Converts to this type from the input type.
§impl From<[u8; 32]> for Sha512Trunc256Sum
impl From<[u8; 32]> for Sha512Trunc256Sum
§fn from(o: [u8; 32]) -> Sha512Trunc256Sum
fn from(o: [u8; 32]) -> Sha512Trunc256Sum
Converts to this type from the input type.
§impl FromSql for Sha512Trunc256Sum
impl FromSql for Sha512Trunc256Sum
§fn column_result(value: ValueRef<'_>) -> Result<Sha512Trunc256Sum, FromSqlError>
fn column_result(value: ValueRef<'_>) -> Result<Sha512Trunc256Sum, FromSqlError>
Converts SQLite value into Rust value.
§impl Hash for Sha512Trunc256Sum
impl Hash for Sha512Trunc256Sum
§impl Index<Range<usize>> for Sha512Trunc256Sum
impl Index<Range<usize>> for Sha512Trunc256Sum
§impl Index<RangeFrom<usize>> for Sha512Trunc256Sum
impl Index<RangeFrom<usize>> for Sha512Trunc256Sum
§impl Index<RangeFull> for Sha512Trunc256Sum
impl Index<RangeFull> for Sha512Trunc256Sum
§impl Index<RangeTo<usize>> for Sha512Trunc256Sum
impl Index<RangeTo<usize>> for Sha512Trunc256Sum
§impl Index<usize> for Sha512Trunc256Sum
impl Index<usize> for Sha512Trunc256Sum
§impl MerkleHashFunc for Sha512Trunc256Sum
impl MerkleHashFunc for Sha512Trunc256Sum
fn empty() -> Sha512Trunc256Sum
fn from_tagged_data(tag: u8, data: &[u8]) -> Sha512Trunc256Sum
fn bits(&self) -> &[u8] ⓘ
§impl Ord for Sha512Trunc256Sum
impl Ord for Sha512Trunc256Sum
§fn cmp(&self, other: &Sha512Trunc256Sum) -> Ordering
fn cmp(&self, other: &Sha512Trunc256Sum) -> Ordering
1.21.0 · source§fn 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
§impl PartialEq for Sha512Trunc256Sum
impl PartialEq for Sha512Trunc256Sum
§fn eq(&self, other: &Sha512Trunc256Sum) -> bool
fn eq(&self, other: &Sha512Trunc256Sum) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.§impl PartialOrd for Sha512Trunc256Sum
impl PartialOrd for Sha512Trunc256Sum
§fn partial_cmp(&self, other: &Sha512Trunc256Sum) -> Option<Ordering>
fn partial_cmp(&self, other: &Sha512Trunc256Sum) -> Option<Ordering>
1.0.0 · source§fn 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 more§impl Serialize for Sha512Trunc256Sum
impl Serialize for Sha512Trunc256Sum
§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where __S: Serializer,
Serialize this value into the given Serde serializer. Read more
§impl StacksMessageCodec for Sha512Trunc256Sum
impl StacksMessageCodec for Sha512Trunc256Sum
§fn consensus_serialize<W>(&self, fd: &mut W) -> Result<(), Error>where
W: Write,
fn consensus_serialize<W>(&self, fd: &mut W) -> Result<(), Error>where W: Write,
serialize implementors should never error unless there is an underlying
failure in writing to the
fd
fn consensus_deserialize<R>(fd: &mut R) -> Result<Sha512Trunc256Sum, Error>where R: Read,
§impl ToSql for Sha512Trunc256Sum
impl ToSql for Sha512Trunc256Sum
§fn to_sql(&self) -> Result<ToSqlOutput<'_>, Error>
fn to_sql(&self) -> Result<ToSqlOutput<'_>, Error>
Converts Rust value to SQLite value
impl Copy for Sha512Trunc256Sum
impl Eq for Sha512Trunc256Sum
Auto Trait Implementations§
impl RefUnwindSafe for Sha512Trunc256Sum
impl Send for Sha512Trunc256Sum
impl Sync for Sha512Trunc256Sum
impl Unpin for Sha512Trunc256Sum
impl UnwindSafe for Sha512Trunc256Sum
Blanket Implementations§
§impl<T> Base32Len for Twhere
T: AsRef<[u8]>,
impl<T> Base32Len for Twhere T: AsRef<[u8]>,
§fn base32_len(&self) -> usize
fn base32_len(&self) -> usize
Calculate the base32 serialized length
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<S> SliceExt for Swhere
S: Index<RangeFull> + ?Sized,
impl<S> SliceExt for Swhere S: Index<RangeFull> + ?Sized,
§impl<T> ToBase32 for Twhere
T: AsRef<[u8]>,
impl<T> ToBase32 for Twhere T: AsRef<[u8]>,
§fn write_base32<W>(&self, writer: &mut W) -> Result<(), <W as WriteBase32>::Err>where
W: WriteBase32,
fn write_base32<W>(&self, writer: &mut W) -> Result<(), <W as WriteBase32>::Err>where W: WriteBase32,
Encode as base32 and write it to the supplied writer
Implementations shouldn’t allocate.