Struct clarity_repl::clarity::util::hash::Sha512Sum [−][src]
Implementations
impl Sha512Sum
[src]
pub fn as_ptr(&self) -> *const u8
[src]
Converts the object to a raw pointer
pub fn as_mut_ptr(&mut self) -> *mut u8
[src]
Converts the object to a mutable raw pointer
pub fn len(&self) -> usize
[src]
Returns the length of the object as an array
pub fn is_empty(&self) -> bool
[src]
Returns whether the object, as an array, is empty. Always false.
pub fn as_bytes(&self) -> &[u8; 64]
[src]
Returns the underlying bytes.
pub fn to_bytes(&self) -> [u8; 64]
[src]
Returns the underlying bytes.
pub fn into_bytes(self) -> [u8; 64]
[src]
Returns the underlying bytes.
impl Sha512Sum
[src]
pub fn from_hex(hex_str: &str) -> Result<Sha512Sum, HexError>
[src]
Instantiates from a hex string
pub fn from_bytes(inp: &[u8]) -> Option<Sha512Sum>
[src]
Instantiates from a slice of bytes
pub fn from_bytes_be(inp: &[u8]) -> Option<Sha512Sum>
[src]
Instantiates from a slice of bytes, converting to host byte order
pub fn from_vec(inp: &Vec<u8>) -> Option<Sha512Sum>
[src]
Instantiates from a vector of bytes
pub fn from_vec_be(b: &Vec<u8>) -> Option<Sha512Sum>
[src]
Instantiates from a big-endian vector of bytes, converting to host byte order
pub fn to_hex(&self) -> String
[src]
Convert to a hex string
impl Sha512Sum
[src]
Trait Implementations
impl AsRef<[u8]> for Sha512Sum
[src]
impl Clone for Sha512Sum
[src]
impl Copy for Sha512Sum
[src]
impl Debug for Sha512Sum
[src]
impl Display for Sha512Sum
[src]
impl Eq for Sha512Sum
[src]
impl<'a> From<&'a [u8]> for Sha512Sum
[src]
impl From<[u8; 64]> for Sha512Sum
[src]
impl Hash for Sha512Sum
[src]
fn hash<H>(&self, state: &mut H) where
H: Hasher,
[src]
H: Hasher,
fn hash_slice<H>(data: &[Sha512Sum], state: &mut H) where
H: Hasher,
[src]
H: Hasher,
impl Index<Range<usize>> for Sha512Sum
[src]
type Output = [u8]
The returned type after indexing.
fn index(&self, index: Range<usize>) -> &[u8]
[src]
impl Index<RangeFrom<usize>> for Sha512Sum
[src]
type Output = [u8]
The returned type after indexing.
fn index(&self, index: RangeFrom<usize>) -> &[u8]
[src]
impl Index<RangeFull> for Sha512Sum
[src]
impl Index<RangeTo<usize>> for Sha512Sum
[src]
type Output = [u8]
The returned type after indexing.
fn index(&self, index: RangeTo<usize>) -> &[u8]
[src]
impl Index<usize> for Sha512Sum
[src]
impl Ord for Sha512Sum
[src]
fn cmp(&self, other: &Sha512Sum) -> Ordering
[src]
#[must_use]pub fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]
impl PartialEq<Sha512Sum> for Sha512Sum
[src]
fn eq(&self, other: &Sha512Sum) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialOrd<Sha512Sum> for Sha512Sum
[src]
Auto Trait Implementations
impl RefUnwindSafe for Sha512Sum
impl Send for Sha512Sum
impl Sync for Sha512Sum
impl Unpin for Sha512Sum
impl UnwindSafe for Sha512Sum
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<S> SliceExt for S where
S: Index<RangeFull> + ?Sized,
S: Index<RangeFull> + ?Sized,
pub fn utf8char_indices(&self) -> Utf8CharDecoder<'_> where
<S as Index<RangeFull>>::Output: Borrow<[u8]>,
<S as Index<RangeFull>>::Output: Borrow<[u8]>,
pub fn utf16char_indices(&self) -> Utf16CharDecoder<'_> where
<S as Index<RangeFull>>::Output: Borrow<[u16]>,
<S as Index<RangeFull>>::Output: Borrow<[u16]>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,