Enum kanjidic_types::pin_yin::Tone
source · #[repr(u8)]pub enum Tone {
High = 1,
Rising = 2,
Low = 3,
Falling = 4,
Neutral = 5,
}
Expand description
One of the four tones of Mandarin. https://en.wikipedia.org/wiki/Standard_Chinese_phonology#Tones
Variants§
High = 1
A steady high sound
Rising = 2
A rising tone
Low = 3
A low or dipping tone
Falling = 4
A sharp falling tone
Neutral = 5
A lack of tone
Trait Implementations§
source§impl<'de> Deserialize<'de> for Tone
impl<'de> Deserialize<'de> for Tone
source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Ord for Tone
impl Ord for Tone
source§impl PartialEq for Tone
impl PartialEq for Tone
source§impl PartialOrd for Tone
impl PartialOrd for Tone
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl TryFrom<u8> for Tone
impl TryFrom<u8> for Tone
§type Error = TryFromPrimitiveError<Tone>
type Error = TryFromPrimitiveError<Tone>
The type returned in the event of a conversion error.
source§impl TryFromPrimitive for Tone
impl TryFromPrimitive for Tone
impl Copy for Tone
impl Eq for Tone
impl StructuralEq for Tone
impl StructuralPartialEq for Tone
Auto Trait Implementations§
impl RefUnwindSafe for Tone
impl Send for Tone
impl Sync for Tone
impl Unpin for Tone
impl UnwindSafe for Tone
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