Function mortal::util::ctrl
[−]
[src]
pub fn ctrl(ch: char) -> char
Returns the control character corresponding to the given character.
Examples
// Ctrl-C assert_eq!(ctrl('c'), '\x03');