Struct spake2::Password[][src]

pub struct Password(_);

Methods

impl Password
[src]

Methods from Deref<Target = Vec<u8>>

Returns the number of elements the vector can hold without reallocating.

Examples

let vec: Vec<i32> = Vec::with_capacity(10);
assert_eq!(vec.capacity(), 10);

Important traits for &'a [u8]

Extracts a slice containing the entire vector.

Equivalent to &s[..].

Examples

use std::io::{self, Write};
let buffer = vec![1, 2, 3, 5, 8];
io::sink().write(buffer.as_slice()).unwrap();

Returns the number of elements in the vector, also referred to as its 'length'.

Examples

let a = vec![1, 2, 3];
assert_eq!(a.len(), 3);

Returns true if the vector contains no elements.

Examples

let mut v = Vec::new();
assert!(v.is_empty());

v.push(1);
assert!(!v.is_empty());

Trait Implementations

impl PartialEq for Password
[src]

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

This method tests for !=.

impl Eq for Password
[src]

impl Clone for Password
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Deref for Password
[src]

The resulting type after dereferencing.

Important traits for Vec<u8>

Dereferences the value.

Auto Trait Implementations

impl Send for Password

impl Sync for Password