Struct chemrust_parser::CellParser
source · pub struct CellParser<'a, S: CellParserState> { /* private fields */ }Implementations§
source§impl<'a> CellParser<'a, Empty>
impl<'a> CellParser<'a, Empty>
pub fn new(input: &'a str) -> CellParser<'_, Loaded>
source§impl<'a> CellParser<'a, Loaded>
impl<'a> CellParser<'a, Loaded>
pub fn to_lattice_cart(self) -> CellParser<'a, LatticeCart>
pub fn to_potentials( self ) -> Result<CellParser<'a, Potentials>, SectionNotFound>
source§impl<'a> CellParser<'a, LatticeCart>
impl<'a> CellParser<'a, LatticeCart>
pub fn to_positions(self) -> CellParser<'a, Positions>
source§impl<'a> CellParser<'a, Positions>
impl<'a> CellParser<'a, Positions>
pub fn build_lattice(&self) -> BasicLatticeModel
source§impl<'a> CellParser<'a, Potentials>
impl<'a> CellParser<'a, Potentials>
pub fn report_potential_files(&self) -> Vec<String>
Trait Implementations§
Auto Trait Implementations§
impl<'a, S> Freeze for CellParser<'a, S>
impl<'a, S> RefUnwindSafe for CellParser<'a, S>where
S: RefUnwindSafe,
impl<'a, S> Send for CellParser<'a, S>where
S: Send,
impl<'a, S> Sync for CellParser<'a, S>where
S: Sync,
impl<'a, S> Unpin for CellParser<'a, S>where
S: Unpin,
impl<'a, S> UnwindSafe for CellParser<'a, S>where
S: UnwindSafe,
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<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.