Struct libpasta::primitives::Primitive [] [src]

pub struct Primitive(pub Sod<PrimitiveImpl>);

Password hashing primitives

Each variant is backed up by different implementation. Internally, primitives can either be static values, for example, the lazy_static generated value DEFAULT_PRIM, or dynamically allocated variables, which are Arc<Box<...>>.

Most operations are expected to be performed using the static functions, since most use the default algorithms. However, the flexibilty to support arbitrary parameter sets is essential.

Trait Implementations

impl<'de> Deserialize<'de> for Primitive
[src]

Deserialize this value from the given Serde deserializer. Read more

impl<'a> Serialize for Primitive
[src]

Serialize this value into the given Serde serializer. Read more

impl Clone for Primitive
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for Primitive
[src]

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

This method tests for !=.

impl PartialOrd for Primitive
[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 Debug for Primitive
[src]

Formats the value using the given formatter.

impl<P: PrimitiveImpl + 'static> From<P> for Primitive
[src]

Performs the conversion.

impl Deref for Primitive
[src]

The resulting type after dereferencing

The method called to dereference a value

impl<'a> From<(&'a Hashes, &'a Map<String, Value>)> for Primitive
[src]

This will be TryFrom when it stabilises. For now we just return a Poisoned

Performs the conversion.

impl<'a> From<(&'a Hashes, &'a String)> for Primitive
[src]

Performs the conversion.