Struct whatlang::Query
[−]
[src]
pub struct Query<'txt> {
pub text: &'txt String,
pub blacklist: Option<Vec<Lang>>,
pub whitelist: Option<Vec<Lang>>,
}Fields
text: &'txt String
blacklist: Option<Vec<Lang>>
whitelist: Option<Vec<Lang>>
Methods
impl<'txt> Query<'txt>[src]
fn new(text: &'txt String) -> Query<'txt>
fn blacklist(self, blacklist: Vec<Lang>) -> Self
fn whitelist(self, whitelist: Vec<Lang>) -> Self
Trait Implementations
impl<'txt> PartialEq for Query<'txt>[src]
fn eq(&self, __arg_0: &Query<'txt>) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &Query<'txt>) -> bool
This method tests for !=.
impl<'txt> Eq for Query<'txt>[src]
impl<'txt> Debug for Query<'txt>[src]
impl<'txt> Clone for Query<'txt>[src]
fn clone(&self) -> Query<'txt>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more