pub struct CELLParser;Implementations§
Source§impl CELLParser
impl CELLParser
Sourcepub fn cell_doc_map(pairs: Pairs<'_, Rule>) -> ParsedCellDoc
pub fn cell_doc_map(pairs: Pairs<'_, Rule>) -> ParsedCellDoc
Build HashMap<String, CELLObject> from Pairs<'_, Rule>
Caution: I decided to convert all keys to lowercase, because while CASTEP parses the files caselessly,
it is hard to handle the case-sensitiveness in pure HashMap.
Sourcepub fn ordered_cell_doc(
cell_doc_map: &HashMap<String, CELLObject>,
) -> OrderedCellDoc
pub fn ordered_cell_doc( cell_doc_map: &HashMap<String, CELLObject>, ) -> OrderedCellDoc
Used for .cell format
Maintained the order from parsed document
Sourcepub fn ordered_param_doc(
cell_doc_map: &HashMap<String, CELLObject>,
) -> OrderedParamDoc
pub fn ordered_param_doc( cell_doc_map: &HashMap<String, CELLObject>, ) -> OrderedParamDoc
Used for .param format
Maintained the order from parsed document
Trait Implementations§
Source§impl Debug for CELLParser
impl Debug for CELLParser
Auto Trait Implementations§
impl Freeze for CELLParser
impl RefUnwindSafe for CELLParser
impl Send for CELLParser
impl Sync for CELLParser
impl Unpin for CELLParser
impl UnwindSafe for CELLParser
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