pub struct Parser(pub(crate) RootElementType);Expand description
Domain parser
Tuple Fields§
§0: RootElementTypeImplementations§
Source§impl Parser
impl Parser
Sourcepub fn start_parsing(reactor_content: &str) -> Result<(String, Self), CMError>
pub fn start_parsing(reactor_content: &str) -> Result<(String, Self), CMError>
Create parser from xml content Returns id + object if suceeds
Sourcepub(crate) fn continue_parsing(
p: Parser,
root_dir: impl AsRef<Path>,
) -> Result<(DomainData, Option<GenerateContract>), CMError>
pub(crate) fn continue_parsing( p: Parser, root_dir: impl AsRef<Path>, ) -> Result<(DomainData, Option<GenerateContract>), CMError>
Parse domain and generate content in the root directory if needed Returns info about generated domain if suceeds
Sourcepub fn continue_parsing_with_path(
Parser: Parser,
root_dir: impl AsRef<Path>,
) -> Result<(DomainData, Option<GenerateContract>), CMError>
pub fn continue_parsing_with_path( Parser: Parser, root_dir: impl AsRef<Path>, ) -> Result<(DomainData, Option<GenerateContract>), CMError>
Parse domain and generate content at given abolute path if needed Returns info about generated domain if suceeds
Auto Trait Implementations§
impl Freeze for Parser
impl RefUnwindSafe for Parser
impl Send for Parser
impl Sync for Parser
impl Unpin for Parser
impl UnsafeUnpin for Parser
impl UnwindSafe for Parser
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
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§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 more§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).§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.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.