pub enum Dialect {
Brazilian,
Hokkaido,
Kansai,
Kantou,
Kyoto,
Kyuushuu,
Nagano,
Osaka,
Ryuukyuu,
Touhoku,
Tosa,
Tsugaru,
}
Expand description
Dialect of Japanese in which a certain vocabulary occurs.
Variants§
Brazilian
Brazilian
Hokkaido
Hokkaido-ben
Kansai
Kansai-ben
Kantou
Kantou-ben
Kyoto
Kyoto-ben
Kyuushuu
Kyuushuu-ben
Nagano
Nagano-ben
Osaka
Osaka-ben
Ryuukyuu
Ryuukyuu-ben
Touhoku
Touhoku-ben
Tosa
Tosa-ben
Tsugaru
Tsugaru-ben
Trait Implementations§
Source§impl Enum for Dialect
impl Enum for Dialect
Source§fn code(&self) -> &'static str
fn code(&self) -> &'static str
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;
.Source§fn constant_name(&self) -> &'static str
fn constant_name(&self) -> &'static str
Returns the variant name. This is used to generate Rust code for this enum. The
impl Display
for enums uses this same representation.Source§fn from_code(text: &str) -> Option<Self>
fn from_code(text: &str) -> Option<Self>
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)
.Source§fn from_constant_name(text: &str) -> Option<Self>
fn from_constant_name(text: &str) -> Option<Self>
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)
.Source§fn all_variants() -> &'static [Self]
fn all_variants() -> &'static [Self]
Returns a list of all variant values in this enum. No particular order is guaranteed or
implied.
Source§impl EnumPayload for Dialect
impl EnumPayload for Dialect
impl Copy for Dialect
impl Eq for Dialect
impl StructuralPartialEq for Dialect
Auto Trait Implementations§
impl Freeze for Dialect
impl RefUnwindSafe for Dialect
impl Send for Dialect
impl Sync for Dialect
impl Unpin for Dialect
impl UnwindSafe for Dialect
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more