pub struct CellDocument { /* private fields */ }Expand description
A structure to represent the .cell file.
Implementations§
Source§impl CellDocument
impl CellDocument
pub fn new(model_description: CellEssentials) -> Self
pub fn parse_from_file<P: AsRef<Path>>( &self, file_path: P, ) -> Result<Self, CellParseError>
pub fn write_out<P: AsRef<Path>>(&self, path: P) -> Result<(), Error>
pub fn other_entries(&self) -> Option<&Vec<CellEntries>>
pub fn other_entries_mut(&mut self) -> &mut Option<Vec<CellEntries>>
pub fn set_entries(&mut self, entries: Option<Vec<CellEntries>>)
pub fn get_elements(&self) -> Vec<ElementSymbol>
Sourcepub fn total_spin(&self) -> u32
pub fn total_spin(&self) -> u32
Get total spins of the species in cell Change! Accumulate all spins of species
pub fn model_description(&self) -> &CellEssentials
pub fn model_description_mut(&mut self) -> &mut CellEssentials
pub fn set_model_description(&mut self, model_description: CellEssentials)
pub fn get_potential_paths<P: AsRef<Path>>( &self, potentials_loc: P, ) -> Vec<PathBuf>
Trait Implementations§
Source§impl Clone for CellDocument
impl Clone for CellDocument
Source§fn clone(&self) -> CellDocument
fn clone(&self) -> CellDocument
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl CrystalModel for CellDocument
impl CrystalModel for CellDocument
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
Source§impl Debug for CellDocument
impl Debug for CellDocument
Source§impl Display for CellDocument
impl Display for CellDocument
Source§impl SymmetryInfo for CellDocument
impl SymmetryInfo for CellDocument
Source§fn get_space_group_it_num(&self) -> u8
fn get_space_group_it_num(&self) -> u8
1-230
fn make_symmetry(&self) -> bool
fn get_space_group_hall_symbol(&self) -> HallSymbolNotation
Auto Trait Implementations§
impl Freeze for CellDocument
impl RefUnwindSafe for CellDocument
impl Send for CellDocument
impl Sync for CellDocument
impl Unpin for CellDocument
impl UnwindSafe for CellDocument
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.