Struct jmdict::LoanwordSource[][src]

pub struct LoanwordSource {
    pub text: &'static str,
    pub language: &'static str,
    pub is_partial: bool,
    pub is_wasei: bool,
}

A source word in other language which a particular Sense of an Entry has been borrowed from.

There may be multiple sources for a single Sense when it is not clear from which language a word has been borrowed (e.g. “セレナーデ” lists both the French word “sérénade” and the German word “Serenade” as loanword sources), or if the vocabulary is a composite word with multiple distinct sources (e.g. “サブリュック” is a combination of the English prefix “sub-” and the German word “Rucksack”).

Within an Entry, glosses appear in the Sense.

Fields

text: &'static strlanguage: &'static str

The ISO 639-2/B code for the language from which the word was borrowed, e.g. “ger” for German or “chi” for Chinese.

is_partial: bool

Whether this source applies only to part of the loanword. Note that this flag is not always present in the JMdict when it should be.

is_wasei: bool

Whether this loanword is a Wasei-eigo.

Trait Implementations

impl Clone for LoanwordSource[src]

impl Copy for LoanwordSource[src]

impl Debug for LoanwordSource[src]

impl Eq for LoanwordSource[src]

impl PartialEq<LoanwordSource> for LoanwordSource[src]

impl StructuralEq for LoanwordSource[src]

impl StructuralPartialEq for LoanwordSource[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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.