Struct dictcc::DictLanguagePair
[−]
[src]
pub struct DictLanguagePair { pub left_language: Language, pub right_language: Language, }
A pair of two languages. Identifies the languages of a single translation database file.
Fields
left_language: Language
The left language in the database.
right_language: Language
The right language in the database.
Methods
impl DictLanguagePair
[src]
fn infer_query_direction(
&self,
source_language: &Language
) -> DictResult<QueryDirection>
[src]
&self,
source_language: &Language
) -> DictResult<QueryDirection>
Infers the QueryDirection
based on a given language.
Errors
Returns DictError::InvalidSourceLanguage
if source_language
is not one of the two languages in DictLanguagePair
.
Trait Implementations
impl Clone for DictLanguagePair
[src]
fn clone(&self) -> DictLanguagePair
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Eq for DictLanguagePair
[src]
impl PartialEq for DictLanguagePair
[src]
fn eq(&self, __arg_0: &DictLanguagePair) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &DictLanguagePair) -> bool
[src]
This method tests for !=
.