[][src]Struct sha2::Sha256

pub struct Sha256 { /* fields omitted */ }

The SHA-256 hash algorithm with the SHA-256 initial hash value.

Trait Implementations

impl Debug for Sha256

Formats the value using the given formatter. Read more

impl Clone for Sha256
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Default for Sha256
[src]

Returns the "default value" for a type. Read more

impl Input for Sha256
[src]

Digest input data. This method can be called repeatedly for use with streaming messages. Read more

impl FixedOutput for Sha256
[src]

Retrieve the digest result. This method consumes digest instance.

impl BlockInput for Sha256
[src]

Auto Trait Implementations

impl Send for Sha256

impl Sync for Sha256

Blanket Implementations

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

impl<T> From for T
[src]

Performs the conversion.

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

impl<T, U> Into for T where
    U: From<T>, 
[src]

Performs the conversion.

impl<T> Borrow for T where
    T: ?Sized
[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut for T where
    T: ?Sized
[src]

Mutably borrows from an owned value. Read more

impl<T> Any for T where
    T: 'static + ?Sized
[src]

🔬 This is a nightly-only experimental API. (get_type_id)

this method will likely be replaced by an associated static

Gets the TypeId of self. Read more

impl<D> Digest for D where
    D: Input + BlockInput + FixedOutput + Default
[src]

Create new hasher instance

Digest input data. This method can be called repeatedly for use with streaming messages. Read more

Retrieve the digest result. This method consumes digest instance.

Convenience function to compute hash of the data. It will handle hasher creation, data feeding and finalization. Read more

Convenience function to compute hash of the string. It's equivalent to digest(input_string.as_bytes()). Read more

impl<T> Same for T
[src]

Should always be Self