pub enum VigenereAttackResult {
KeyStringProbability(Vec<(String, f64)>),
KeyCharProbability(Vec<Vec<(char, f64)>>),
}Variants§
KeyStringProbability(Vec<(String, f64)>)
It uses fitness to measure probability that given key is the correct one
KeyCharProbability(Vec<Vec<(char, f64)>>)
It check every char by itself, so it return probability that given one is the correct one
Auto Trait Implementations§
impl Freeze for VigenereAttackResult
impl RefUnwindSafe for VigenereAttackResult
impl Send for VigenereAttackResult
impl Sync for VigenereAttackResult
impl Unpin for VigenereAttackResult
impl UnsafeUnpin for VigenereAttackResult
impl UnwindSafe for VigenereAttackResult
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