pub struct ALPHABET { /* private fields */ }
Methods from Deref<Target = Alphabet>§
sourcepub fn random_index_of_coincidence(&self) -> f64
pub fn random_index_of_coincidence(&self) -> f64
Returns the expected index of coincidence for a truly random string of characters of this alphabet with infinite length.
§Returns
The index of coincidence
pub fn characters(&self) -> &[char]
pub fn index_of(&self, character: char) -> Option<AlphabetIndex>
pub fn letter_at(&self, index: AlphabetIndex) -> &char
pub fn union(&self, other: &Self) -> Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ALPHABET
impl RefUnwindSafe for ALPHABET
impl Send for ALPHABET
impl Sync for ALPHABET
impl Unpin for ALPHABET
impl UnwindSafe for ALPHABET
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more