SecureStringExt

Trait SecureStringExt 

Source
pub trait SecureStringExt {
    // Required methods
    fn len(&self) -> usize;
    fn is_empty(&self) -> bool;
    fn eq(&self, other: &Self) -> bool;
}
Expand description

Extension trait to add convenience methods to SecureString

Required Methods§

Source

fn len(&self) -> usize

Returns the length of the string in bytes.

Source

fn is_empty(&self) -> bool

Returns true if the string is empty.

Source

fn eq(&self, other: &Self) -> bool

Constant time eq

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§