pub struct LETTERS { /* 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
pub fn shift(&self, shift: u8) -> Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LETTERS
impl RefUnwindSafe for LETTERS
impl Send for LETTERS
impl Sync for LETTERS
impl Unpin for LETTERS
impl UnwindSafe for LETTERS
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more