Expand description
Module for stacking line-drawing characters on top of each other.
§Examples
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);
Functions§
- bits_
to_ char - Convert a bitset to a line-drawing char.
- char_
to_ bits - Convert a line-drawing char to a bitset (or None if the char is unsupported).
- stack
- Stack two line-drawing characters on top of each other and return the result.