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