pub struct Sha1 { /* private fields */ }
Expand description
Represents a Sha1 hash object in memory.
Implementations
sourceimpl Sha1
impl Sha1
sourcepub fn new() -> Sha1
pub fn new() -> Sha1
Creates an fresh sha1 hash object.
This is equivalent to creating a hash with Default::default
.
Trait Implementations
sourceimpl Hash for Sha1
impl Hash for Sha1
sourcefn hash<__H>(&self, state: &mut __H)where
__H: Hasher,
fn hash<__H>(&self, state: &mut __H)where
__H: Hasher,
Feeds this value into the given [
Hasher
]. Read more1.3.0fn hash_slice<H>(data: &[Self], state: &mut H)where
H: Hasher,
fn hash_slice<H>(data: &[Self], state: &mut H)where
H: Hasher,
Feeds a slice of this type into the given [
Hasher
]. Read moresourceimpl Ord for Sha1
impl Ord for Sha1
sourceimpl PartialOrd<Sha1> for Sha1
impl PartialOrd<Sha1> for Sha1
impl Eq for Sha1
impl StructuralEq for Sha1
impl StructuralPartialEq for Sha1
Auto Trait Implementations
impl RefUnwindSafe for Sha1
impl Send for Sha1
impl Sync for Sha1
impl Unpin for Sha1
impl UnwindSafe for Sha1
Blanket Implementations
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstablefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> ToOwned for Twhere
T: Clone,
impl<T> ToOwned for Twhere
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
fn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
Uses borrowed data to replace owned data, usually by cloning. Read more