Enum argonautica::config::Version[][src]

pub enum Version {
    _0x10,
    _0x13,
}

Enum representing the various versions of the Argon2 algorithm ( 0x10 and 0x13)

Variants

An outdated version of the Argon2 algorithm. Do not use this unless you have a specific reason to.

The default and latest version of the Argon2 algorithm (as of 5/18). Use this unless you have a specific reason not to.

Methods

impl Version
[src]

Performs the following mapping:

  • Version::_0x10 => "16"
  • Version::_0x13 => "19"

Performs the following mapping:

  • 16_u32 => Ok(Version::_0x10)
  • 19_u32 => Ok(Version::_0x13)
  • anything else => an error

Trait Implementations

impl Default for Version
[src]

impl FromStr for Version
[src]

Performs the following mapping:

  • "16" => Ok(Version::_0x10)
  • "19" => Ok(Version::_0x13)
  • anything else => an error

impl Copy for Version
[src]

impl Clone for Version
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Version
[src]

Formats the value using the given formatter. Read more

impl Eq for Version
[src]

impl PartialEq for Version
[src]

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

This method tests for !=.

impl Ord for Version
[src]

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

Compares and returns the maximum of two values. Read more

Compares and returns the minimum of two values. Read more

impl PartialOrd for Version
[src]

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

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

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

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

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

impl Hash for Version
[src]

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

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

Auto Trait Implementations

impl Send for Version

impl Sync for Version