purr 0.9.0

Primitives for reading and writing the SMILES language in Rust.
Documentation
1
2
3
4
5
6
7
8
9
use super::{ scanner::Scanner, Error };

pub fn missing_character(scanner: &mut Scanner) -> Error {
    if scanner.is_done() {
        Error::EndOfLine
    } else {
        Error::Character(scanner.cursor())
    }
}