Struct whatlang::Query
[−]
[src]
pub struct Query<'a> { pub text: &'a str, pub blacklist: Option<&'a [Lang]>, pub whitelist: Option<&'a [Lang]>, }
Fields
text: &'a str
blacklist: Option<&'a [Lang]>
whitelist: Option<&'a [Lang]>
Methods
impl<'a> Query<'a>
[src]
fn new(text: &'a str) -> Query<'a>
fn blacklist(self, blacklist: &'a [Lang]) -> Self
fn whitelist(self, whitelist: &'a [Lang]) -> Self
Trait Implementations
impl<'a> PartialEq for Query<'a>
[src]
fn eq(&self, __arg_0: &Query<'a>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Query<'a>) -> bool
This method tests for !=
.
impl<'a> Eq for Query<'a>
[src]
impl<'a> Debug for Query<'a>
[src]
impl<'a> Clone for Query<'a>
[src]
fn clone(&self) -> Query<'a>
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