pub struct Parser<'t> { /* private fields */ }Expand description
Phase 2+3 parser. Stateless; call Parser::parse per candidate.
Implementations§
Source§impl<'t> Parser<'t>
impl<'t> Parser<'t>
pub fn new(tokens: &'t dyn TokenSet) -> Self
Sourcepub fn parse(
&self,
candidate: &MarkingCandidate,
source: &[u8],
) -> Result<ParsedMarking, CoreError>
pub fn parse( &self, candidate: &MarkingCandidate, source: &[u8], ) -> Result<ParsedMarking, CoreError>
Parse a single scanner candidate into IsmAttributes.
Auto Trait Implementations§
impl<'t> Freeze for Parser<'t>
impl<'t> !RefUnwindSafe for Parser<'t>
impl<'t> Send for Parser<'t>
impl<'t> Sync for Parser<'t>
impl<'t> Unpin for Parser<'t>
impl<'t> UnsafeUnpin for Parser<'t>
impl<'t> !UnwindSafe for Parser<'t>
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