Struct kanjidic_types::ShDesc
source · [−]pub struct ShDesc {
pub radical_strokes: u8,
pub radical: ShRadical,
pub other_strokes: u8,
pub sequence: u8,
}
Expand description
Descriptor code for The Kanji Dictionary. The code reference can be found here: http://www.edrdg.org/wiki/index.php/KANJIDIC_Project
Fields
radical_strokes: u8
Number of strokes in the identifying radical.
radical: ShRadical
The letter for the radical in the identification system.
other_strokes: u8
The number of strokes not included in the radical.
sequence: u8
The position of the kanji in the sequence described by the other descriptor parts.
Trait Implementations
sourceimpl<'de> Deserialize<'de> for ShDesc
impl<'de> Deserialize<'de> for ShDesc
sourcefn 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
sourceimpl Ord for ShDesc
impl Ord for ShDesc
1.21.0 · sourcefn max(self, other: Self) -> Self
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Self
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialOrd<ShDesc> for ShDesc
impl PartialOrd<ShDesc> for ShDesc
sourcefn partial_cmp(&self, other: &ShDesc) -> Option<Ordering>
fn partial_cmp(&self, other: &ShDesc) -> Option<Ordering>
1.0.0 · sourcefn 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 moreimpl Copy for ShDesc
impl Eq for ShDesc
impl StructuralEq for ShDesc
impl StructuralPartialEq for ShDesc
Auto Trait Implementations
impl RefUnwindSafe for ShDesc
impl Send for ShDesc
impl Sync for ShDesc
impl Unpin for ShDesc
impl UnwindSafe for ShDesc
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more