[][src]Struct ogma_libs::matcher::Matcher

pub struct Matcher<'a> { /* fields omitted */ }

Reads tokens, queries and data from a string

Implementations

impl<'a> Matcher<'a>[src]

pub fn new(src: &'a str) -> Self[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_data<T>(&mut self) -> Result<T, MatchError> where
    T: Deserialize<'a>, 
[src]

Get the next NLSD object from the string and deserialize into T

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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.