[][src]Function crypt_utils::wrapped_shift_letters

pub fn wrapped_shift_letters(to_shift: char, key_char: char) -> char

Shifts the given char by the given amount, wrapping back around to the beginning of the alphabet if shift_by is greater than the amount of letters left in the alphabet.

Example

let shifted: char = KeyGenerator::wrapped_shift_letters('a', 12u32);