#[repr(u8)]pub enum Letter {
Show 26 variants
A = 0,
B = 1,
C = 2,
D = 3,
E = 4,
F = 5,
G = 6,
H = 7,
I = 8,
J = 9,
K = 10,
L = 11,
M = 12,
N = 13,
O = 14,
P = 15,
Q = 16,
R = 17,
S = 18,
T = 19,
U = 20,
V = 21,
W = 22,
X = 23,
Y = 24,
Z = 25,
}
Expand description
Represent a letter in the enigma machine. Essentially a u8 mod 26.
Variants§
A = 0
B = 1
C = 2
D = 3
E = 4
F = 5
G = 6
H = 7
I = 8
J = 9
K = 10
L = 11
M = 12
N = 13
O = 14
P = 15
Q = 16
R = 17
S = 18
T = 19
U = 20
V = 21
W = 22
X = 23
Y = 24
Z = 25
Implementations§
Trait Implementations§
Source§impl AddAssign<u8> for Letter
impl AddAssign<u8> for Letter
Source§fn add_assign(&mut self, rhs: u8)
fn add_assign(&mut self, rhs: u8)
Performs the
+=
operation. Read moreSource§impl Ord for Letter
impl Ord for Letter
Source§impl PartialOrd for Letter
impl PartialOrd for Letter
impl Copy for Letter
impl Eq for Letter
impl StructuralPartialEq for Letter
Auto Trait Implementations§
impl Freeze for Letter
impl RefUnwindSafe for Letter
impl Send for Letter
impl Sync for Letter
impl Unpin for Letter
impl UnwindSafe for Letter
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