bars_to_blocks

Function bars_to_blocks 

Source
pub fn bars_to_blocks(bars: impl IntoIterator<Item = Bar>) -> String
Expand description

Create a string representation of the bars using Unicode block characters.

The quiet zones are included.

§Example

assert_eq!(
    bars_to_blocks(Code128::encode(b"<3").bars()),
    "     █▐ ▌ ▐█ █▐ █ ▌█▌▐  ▌█ █ ▐█▐▐▌     ",
);