pub enum CaseStrategy {
CaseSensitive,
CaseUnsensitive,
Preserve,
}Expand description
Which strategy to use for case
Variants§
CaseSensitive
A ≠ a
Alphabet can have same letters if in different case.
§Example
let alphabet = &['A', 'a', 'B', 'b', 'C', 'c'];“A, a, B, b, C, c,…”
CaseUnsensitive
Preserve
The case of the letter will remain the same after encrypting or decrypting:
ggzLCB ⇒ cipHER
Alphabet can only have uppercase letters.
§Example
let alphabet = &['A', 'B', 'C'];Trait Implementations§
Source§impl Clone for CaseStrategy
impl Clone for CaseStrategy
Source§fn clone(&self) -> CaseStrategy
fn clone(&self) -> CaseStrategy
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CaseStrategy
impl Debug for CaseStrategy
Source§impl Default for CaseStrategy
impl Default for CaseStrategy
Source§fn default() -> CaseStrategy
fn default() -> CaseStrategy
Returns the “default value” for a type. Read more
Source§impl Display for CaseStrategy
impl Display for CaseStrategy
Source§impl ValueEnum for CaseStrategy
impl ValueEnum for CaseStrategy
impl Copy for CaseStrategy
Auto Trait Implementations§
impl Freeze for CaseStrategy
impl RefUnwindSafe for CaseStrategy
impl Send for CaseStrategy
impl Sync for CaseStrategy
impl Unpin for CaseStrategy
impl UnsafeUnpin for CaseStrategy
impl UnwindSafe for CaseStrategy
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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