char_to_bits

Function char_to_bits 

Source
pub fn char_to_bits(c: char) -> Option<usize>
Expand description

Convert a line-drawing char to a bitset (or None if the char is unsupported).

§Examples

let c = '┬';
let result = unicode_line_stacker::char_to_bits(c);
assert_eq!(Some(0b1110), result);