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”).
Fields
text: &'static str
language: &'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]
fn clone(&self) -> LoanwordSource
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for LoanwordSource
[src]
impl Debug for LoanwordSource
[src]
impl Eq for LoanwordSource
[src]
impl PartialEq<LoanwordSource> for LoanwordSource
[src]
fn eq(&self, other: &LoanwordSource) -> bool
[src]
fn ne(&self, other: &LoanwordSource) -> bool
[src]
impl StructuralEq for LoanwordSource
[src]
impl StructuralPartialEq for LoanwordSource
[src]
Auto Trait Implementations
impl RefUnwindSafe for LoanwordSource
impl Send for LoanwordSource
impl Sync for LoanwordSource
impl Unpin for LoanwordSource
impl UnwindSafe for LoanwordSource
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,