Enum jmdict_enums::AllGlossLanguage [−][src]
pub enum AllGlossLanguage { English, Dutch, French, German, Hungarian, Russian, Slovenian, Spanish, Swedish, }
Expand description
The language of a particular Gloss. This enum contains all possible variants, including those that have been disabled by compile-time flags in enum GlossLanguage
.
Variants
Trait Implementations
Returns the string that marks this enum variant in the JMdict. For values that JMdict
represents as XML entities, only the entity name is returned, e.g. adj-n
instead of
&adj-n;
. Read more
Returns the variant name. This is used to generate Rust code for this enum. The impl Display
for enums uses this same representation. Read more
Parses a representation from the JMdict file into a value of this enum. This is the reverse
of self.code()
, i.e. Self::from_code(self.code()) == Some(self)
. Read more
Returns the variant that is identified the given name in Rust code, or None
if there is no
such variant. This is the reverse of self.constant_name()
, i.e.
Self::from_constant_name(self.constant_name()) == Some(self)
. Read more
Returns a list of all variant values in this enum. No particular order is guaranteed or implied. Read more
Performs the conversion.
type Error = DisabledVariant
type Error = DisabledVariant
The type returned in the event of a conversion error.
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for AllGlossLanguage
impl Send for AllGlossLanguage
impl Sync for AllGlossLanguage
impl Unpin for AllGlossLanguage
impl UnwindSafe for AllGlossLanguage
Blanket Implementations
Mutably borrows from an owned value. Read more