Enum argonautica::config::Version [−][src]
pub enum Version { _0x10, _0x13, }
Variants
_0x10
An outdated version of the Argon2 algorithm. Do not use this unless you have a specific reason to.
_0x13
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]
impl Version
pub fn as_str(&self) -> &'static str
[src]
pub fn as_str(&self) -> &'static str
Performs the following mapping:
Version::_0x10
=>"16"
Version::_0x13
=>"19"
pub fn from_u32(x: u32) -> Result<Version, Error>
[src]
pub fn from_u32(x: u32) -> Result<Version, Error>
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 Default for Version
fn default() -> Version
[src]
fn default() -> Version
Returns Version::_0x13
impl FromStr for Version
[src]
impl FromStr for Version
type Err = Error
fn from_str(s: &str) -> Result<Self, Self::Err>
[src]
fn from_str(s: &str) -> Result<Self, Self::Err>
Performs the following mapping:
"16"
=>Ok(Version::_0x10)
"19"
=>Ok(Version::_0x13)
- anything else => an error
impl Copy for Version
[src]
impl Copy for Version
impl Clone for Version
[src]
impl Clone for Version
fn clone(&self) -> Version
[src]
fn clone(&self) -> Version
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Debug for Version
[src]
impl Debug for Version
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Eq for Version
[src]
impl Eq for Version
impl PartialEq for Version
[src]
impl PartialEq for Version
fn eq(&self, other: &Version) -> bool
[src]
fn eq(&self, other: &Version) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
fn ne(&self, other: &Rhs) -> bool
This method tests for !=
.
impl Ord for Version
[src]
impl Ord for Version
fn cmp(&self, other: &Version) -> Ordering
[src]
fn cmp(&self, other: &Version) -> Ordering
This method returns an Ordering
between self
and other
. Read more
fn max(self, other: Self) -> Self
1.21.0[src]
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
impl PartialOrd for Version
[src]
impl PartialOrd for Version
fn partial_cmp(&self, other: &Version) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &Version) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &Rhs) -> bool
1.0.0[src]
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
fn gt(&self, other: &Rhs) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
fn ge(&self, other: &Rhs) -> bool
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]
impl Hash for Version