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