cipher_utils

Trait Analyze

source
pub trait Analyze {
    // Required methods
    fn index_of_coincidence(&self) -> f64;
    fn alphabet(&self) -> Alphabet;

    // Provided method
    fn ioc(&self) -> f64 { ... }
}

Required Methods§

source

fn index_of_coincidence(&self) -> f64

source

fn alphabet(&self) -> Alphabet

Returns an Alphabet containing the unique characters of this string in-order.

Provided Methods§

source

fn ioc(&self) -> f64

Alias for index_of_coincidence().

Implementors§

source§

impl<T: AsRef<str>> Analyze for T