/// Takes the key and keyword for the ADFGVX cipher and returns a
/// corresponding ADFGVX struct.
///
/// # Panics
/// * If `key` is not 36 chars in length.
/// * If `key` contains repeated chars.
/// * If `key` is not valid ascii.
/// * If `keyword` is not valid ascii.
Takes the key and keyword for the ADFGVX cipher and returns a
corresponding ADFGVX struct.
Takes the key and keyword for the ADFGVX cipher and returns a corresponding ADFGVX struct .
pub fn new(key: &str, keyword: &str) -> Self {
        assert_eq!(key.len(), 36, "`key` must be 36 chars in length");
        Self {
            key: String::from(key),
            keyword: String::from(keyword),
        }
    }
pub fn new ( key : & str , keyword : & str ) -> Self { assert_eq ! ( key len ( ) 36 " " ) ; Self { key : String :: from ( key ) , keyword : String :: from ( keyword ) , } }
Takes the key and keyword for the ADFGVX cipher and returns a
corresponding ADFGVX struct.
Takes the key and keyword for the ADFGVX cipher and returns a corresponding ADFGVX struct .
key
&str
keyword
&str
panics
If `key` is not 36 chars in length.
If `key` contains repeated chars.
If `key` is not valid ascii.
If `keyword` is not valid ascii.
If ` key ` is not 36 chars in length . If ` key ` contains repeated chars . If ` key ` is not valid ascii . If ` keyword ` is not valid ascii .