[−][src]Struct sha1::Digest
Digest generated from a Sha1 instance.
A digest can be formatted to view the digest as a hex string, or the bytes can be extracted for later processing.
To retrieve a hex string result call to_string on it (requires that std
is available).
If the serde feature is enabled a digest can also be serialized and
deserialized. Likewise a digest can be parsed from a hex string.
Methods
impl Digest[src]
Trait Implementations
impl Clone for Digest[src]
fn clone(&self) -> Digest[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Copy for Digest[src]
impl Debug for Digest[src]
impl Default for Digest[src]
impl Display for Digest[src]
impl Eq for Digest[src]
impl FromStr for Digest[src]
type Err = DigestParseError
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<Digest, DigestParseError>[src]
impl Hash for Digest[src]
fn hash<__H: Hasher>(&self, state: &mut __H)[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
H: Hasher,
impl Ord for Digest[src]
fn cmp(&self, other: &Digest) -> Ordering[src]
#[must_use]
fn max(self, other: Self) -> Self1.21.0[src]
#[must_use]
fn min(self, other: Self) -> Self1.21.0[src]
#[must_use]
fn clamp(self, min: Self, max: Self) -> Self[src]
impl PartialEq<Digest> for Digest[src]
impl PartialOrd<Digest> for Digest[src]
fn partial_cmp(&self, other: &Digest) -> Option<Ordering>[src]
fn lt(&self, other: &Digest) -> bool[src]
fn le(&self, other: &Digest) -> bool[src]
fn gt(&self, other: &Digest) -> bool[src]
fn ge(&self, other: &Digest) -> bool[src]
impl StructuralEq for Digest[src]
impl StructuralPartialEq for Digest[src]
Auto Trait Implementations
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,
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, 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.
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>,