pub trait CrystalModel {
// Required methods
fn get_cell_parameters(&self) -> &impl UnitCellParameters;
fn get_atom_data(&self) -> &impl CoreAtomData;
fn get_cell_parameters_mut(&mut self) -> &mut impl UnitCellParameters;
fn get_atom_data_mut(&mut self) -> &mut impl CoreAtomData;
}Expand description
The struct to represent a crystal model structure should implement this trait.
Required Methods§
fn get_cell_parameters(&self) -> &impl UnitCellParameters
fn get_atom_data(&self) -> &impl CoreAtomData
fn get_cell_parameters_mut(&mut self) -> &mut impl UnitCellParameters
fn get_atom_data_mut(&mut self) -> &mut impl CoreAtomData
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.