pub struct EnigmaSettings<const ROTOR_NUM: usize = DEFAULT_ROTOR_NUM> {
pub rotors: [Rotor; ROTOR_NUM],
pub plugboard: Plugboard,
pub reflector: Reflector,
pub ringstellung: [u8; ROTOR_NUM],
pub grundstellung: [Letter; ROTOR_NUM],
}
Expand description
Settings for the Enigma machine. Equivalent to a modern day IV (Initialisation Vector)
Fields§
§rotors: [Rotor; ROTOR_NUM]
Rotors and their ordering
plugboard: Plugboard
Plugboard cabling
reflector: Reflector
Selected reflector
ringstellung: [u8; ROTOR_NUM]
Ring settings for each rotor
grundstellung: [Letter; ROTOR_NUM]
Starting position for each rotor
Trait Implementations§
Auto Trait Implementations§
impl<const ROTOR_NUM: usize> Freeze for EnigmaSettings<ROTOR_NUM>
impl<const ROTOR_NUM: usize> RefUnwindSafe for EnigmaSettings<ROTOR_NUM>
impl<const ROTOR_NUM: usize> Send for EnigmaSettings<ROTOR_NUM>
impl<const ROTOR_NUM: usize> Sync for EnigmaSettings<ROTOR_NUM>
impl<const ROTOR_NUM: usize> Unpin for EnigmaSettings<ROTOR_NUM>
impl<const ROTOR_NUM: usize> UnwindSafe for EnigmaSettings<ROTOR_NUM>
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