pub trait Scannable {
// Required method
fn normalize(&self) -> String;
}
Expand description
Marks a data type as compatible with the ocr()
function.
Required Methods§
Sourcefn normalize(&self) -> String
fn normalize(&self) -> String
Converts the type into a String that can be read by ocr()
.
‘#’ is considered part of a letter and all other chars are considered blank space.
To implement normalize()
for your own data type, translate your data into this
format:
.##..###...##.
#..#.#..#.#..#
#..#.###..#...
####.#..#.#...
#..#.#..#.#..#
#..#.###...##.