chemrust_core/data/lattice/crystal/mod.rs
1use crate::data::atom::CoreAtomData;
2
3use crate::data::lattice::cell_param::UnitCellParameters;
4
5/// The struct to represent a crystal model structure should implement this trait.
6pub trait CrystalModel {
7 fn get_cell_parameters(&self) -> &impl UnitCellParameters;
8 fn get_atom_data(&self) -> &impl CoreAtomData;
9 fn get_cell_parameters_mut(&mut self) -> &mut impl UnitCellParameters;
10 fn get_atom_data_mut(&mut self) -> &mut impl CoreAtomData;
11}