Struct sha1::Sha1 [] [src]

pub struct Sha1 { /* fields omitted */ }

Represents a Sha1 hash object in memory.

Methods

impl Sha1
[src]

[src]

Creates an fresh sha1 hash object.

This is equivalent to creating a hash with Default::default.

[src]

Shortcut to create a sha1 from some bytes.

This also lets you create a hash from a utf-8 string. This is equivalent to making a new Sha1 object and calling update on it once.

[src]

Resets the hash object to it's initial state.

[src]

Update hash with input data.

[src]

Retrieve digest result.

[src]

Retrieve the digest result as hex string directly.

(The function is only available if the std feature is enabled)

Trait Implementations

impl Clone for Sha1
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialOrd for Sha1
[src]

[src]

This method returns an ordering between self and other values if one exists. Read more

[src]

This method tests less than (for self and other) and is used by the < operator. Read more

[src]

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

[src]

This method tests greater than (for self and other) and is used by the > operator. Read more

[src]

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl Ord for Sha1
[src]

[src]

This method returns an Ordering between self and other. Read more

1.22.0
[src]

Compares and returns the maximum of two values. Read more

1.22.0
[src]

Compares and returns the minimum of two values. Read more

impl PartialEq for Sha1
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl Eq for Sha1
[src]

impl Hash for Sha1
[src]

[src]

Feeds this value into the given [Hasher]. Read more

1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl Default for Sha1
[src]

[src]

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