castep-cell-io 0.1.0

A crate helping to parse, edit and save `castep` input file format `.cell`
Documentation
mod constraints;
mod kpoint;
mod lattice;
mod positions;
mod species;
mod symmetry;

pub use lattice::*;
pub use positions::*;

#[derive(Debug, Default)]
pub enum ItemTypes {
    #[default]
    Block,
    Physical,
    Logical,
    D,
    RealVector,
    IntegerVector,
}

#[derive(Debug)]
pub enum KeywordType<'s> {
    Block(&'s str),
    Field(&'s str),
}

#[allow(non_camel_case_types)]
#[non_exhaustive]
#[derive(Debug)]
pub enum DocumentSections<'s> {
    CellLatticeVectors(LatticeBlockType),
    IonicPositions(PositionsKeywords),
    KPoint,
    Symmetry,
    Species,
    Misc(KeywordType<'s>),
}