Trait Scannable

Source
pub trait Scannable {
    // Required method
    fn normalize(&self) -> String;
}
Expand description

Marks a data type as compatible with the ocr() function.

Required Methods§

Source

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:

.##..###...##.
#..#.#..#.#..#
#..#.###..#...
####.#..#.#...
#..#.#..#.#..#
#..#.###...##.

Implementations on Foreign Types§

Source§

impl Scannable for &str

Source§

impl Scannable for &Vec<Vec<bool>>

Source§

impl Scannable for &Vec<Vec<char>>

Source§

impl Scannable for (&Vec<bool>, usize)

Source§

impl Scannable for (&Vec<char>, usize)

Implementors§