Module for stacking line-drawing characters on top of each other.
let combo = unicode_line_stacker::stack('┌', '┴'); assert_eq!(Some('┼'), combo); // Bit string format: for each of the four directions, clockwise starting from // top (least significant to most significant), 1 means "on" and 0 means "off." let c = unicode_line_stacker::bits_to_char(0b1011); assert_eq!('┴', c);
Convert a bitset to a line-drawing char.
Convert a line-drawing char to a bitset (or None if the char is unsupported).
Stack two line-drawing characters on top of each other and return the result.