Rasterize your shapes on a bitmap.
fn main() {
let mut bitmap: Bitmap = Bitmap::new(48, 48);
Line {
start: Pos(1, 1),
end: Pos(32, 16),
}
.rasterize(&mut bitmap);
println!(
"{}",
PlainBitFormatter::new(
"~>",
" ",
|| bitmap.bits().horizontal_bits(),
bitmap.width(),
bitmap.height()
)
)
}