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

The left language in the database.

The right language in the database.

Methods

impl DictLanguagePair
[src]

[src]

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]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Eq for DictLanguagePair
[src]

impl PartialEq for DictLanguagePair
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl Debug for DictLanguagePair
[src]

[src]

Formats the value using the given formatter.