pub struct Matcher<'a> { /* private fields */ }Expand description
Reads tokens, queries and data from a string
Implementations§
Source§impl<'a> Matcher<'a>
impl<'a> Matcher<'a>
Sourcepub fn next_static(&mut self) -> Result<&'a str, MatchError>
pub fn next_static(&mut self) -> Result<&'a str, MatchError>
Get the next static token from the string
Sourcepub fn next_query(&mut self) -> Result<Vec<Query<'a>>, MatchError>
pub fn next_query(&mut self) -> Result<Vec<Query<'a>>, MatchError>
Get the next NLOQ query from the string
Sourcepub fn next_query_owned(&mut self) -> Result<Vec<Query<'static>>, MatchError>
pub fn next_query_owned(&mut self) -> Result<Vec<Query<'static>>, MatchError>
Get the next NLOQ query from the string
Sourcepub fn next_data<T>(&mut self) -> Result<T, MatchError>where
T: Deserialize<'a>,
pub fn next_data<T>(&mut self) -> Result<T, MatchError>where
T: Deserialize<'a>,
Get the next NLSD object from the string and deserialize into T
Auto Trait Implementations§
impl<'a> Freeze for Matcher<'a>
impl<'a> RefUnwindSafe for Matcher<'a>
impl<'a> Send for Matcher<'a>
impl<'a> Sync for Matcher<'a>
impl<'a> Unpin for Matcher<'a>
impl<'a> UnsafeUnpin for Matcher<'a>
impl<'a> UnwindSafe for Matcher<'a>
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