1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! Misc utilities for Enigma

mod letter;
mod letter_mapping;

pub use letter::Letter;
pub use letter_mapping::{
    string_to_inv_letter_map, string_to_letter_map, LetterMapping, UNIT_LETTER_MAP,
};

#[derive(Debug, PartialEq)]
/// Error converting types
pub struct ConversionError;

const ROTOR_SIZE: usize = 26;
#[allow(clippy::cast_possible_truncation)]
const ROTOR_SIZE_U8: u8 = ROTOR_SIZE as u8;