[][src]Struct marks::query::Query

pub struct Query {
    pub full: String,
    pub musts: Vec<String>,
    pub nones: Vec<String>,
    pub regexes: Vec<Regex>,
    pub rest: Vec<String>,
}

Fields

full: String

Query string that user provided.

musts: Vec<String>

"keyword"

nones: Vec<String>

-keyword

regexes: Vec<Regex>

(some|regex)

rest: Vec<String>

full - (musts + nones + regexes). Used for fuzzy searching.

Implementations

impl Query[src]

pub fn new(input: &str) -> Query[src]

pub fn tokenize_single<I>(iter: &mut Peekable<I>) -> Option<QueryToken> where
    I: Iterator<Item = char>, 
[src]

Trait Implementations

impl Debug for Query[src]

Auto Trait Implementations

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> Pointable for T

type Init = T

The type for initializers.

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.