balsa 0.3.2

Reference implementation for the Balsa molecular line notation.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use std::convert;

#[derive(Debug, PartialEq)]
pub enum Error {
    EndOfLine,
    Character(usize),
}

impl convert::From<lyn::Error> for Error {
    fn from(value: lyn::Error) -> Self {
        match value {
            lyn::Error::EndOfLine => Self::EndOfLine,
            lyn::Error::Character(pos) => Self::Character(pos),
        }
    }
}