chemrust-parser 0.2.0

The core modules defining the flow and structs of data in computational chemistry routines.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use std::fmt::Display;

#[derive(Debug)]
pub struct SectionNotFound(String);

impl SectionNotFound {
    pub fn new(section_name: &str) -> Self {
        Self(section_name.into())
    }
}

impl Display for SectionNotFound {
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        write!(f, "Section name: {} not found in the cell file", self.0)
    }
}