[−][src]Struct ogma::matcher::Matcher
Reads tokens, queries and data from a string
Implementations
impl<'a> Matcher<'a>
[src]
pub fn new(src: &'a str) -> Matcher<'a>
[src]
Create a new Matcher instance
pub fn next_static(&mut self) -> Result<&'a str, MatchError>
[src]
Get the next static token from the string
pub fn next_query(&mut self) -> Result<Vec<Query<'a>>, MatchError>
[src]
Get the next NLOQ query from the string
pub fn next_query_owned(&mut self) -> Result<Vec<Query<'static>>, MatchError>
[src]
Get the next NLOQ query from the string
pub fn next_data<T>(&mut self) -> Result<T, MatchError> where
T: Deserialize<'a>,
[src]
T: Deserialize<'a>,
Get the next NLSD object from the string and deserialize into T
pub fn is_empty(&self) -> bool
[src]
Check if the matcher contains more tokens
Auto Trait Implementations
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> UnwindSafe for Matcher<'a>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,