Struct kanjidic_types::spahn_hadamitzky::descriptor::Descriptor
source · pub struct Descriptor {
pub radical_strokes: u8,
pub radical: Radical,
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: Radical
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§
source§impl Clone for Descriptor
impl Clone for Descriptor
source§fn clone(&self) -> Descriptor
fn clone(&self) -> Descriptor
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for Descriptor
impl Debug for Descriptor
source§impl<'de> Deserialize<'de> for Descriptor
impl<'de> Deserialize<'de> for Descriptor
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 Hash for Descriptor
impl Hash for Descriptor
source§impl Ord for Descriptor
impl Ord for Descriptor
source§fn cmp(&self, other: &Descriptor) -> Ordering
fn cmp(&self, other: &Descriptor) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for Descriptor
impl PartialEq for Descriptor
source§fn eq(&self, other: &Descriptor) -> bool
fn eq(&self, other: &Descriptor) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for Descriptor
impl PartialOrd for Descriptor
source§fn partial_cmp(&self, other: &Descriptor) -> Option<Ordering>
fn partial_cmp(&self, other: &Descriptor) -> Option<Ordering>
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 Serialize for Descriptor
impl Serialize for Descriptor
source§impl TryFrom<&str> for Descriptor
impl TryFrom<&str> for Descriptor
impl Copy for Descriptor
impl Eq for Descriptor
impl StructuralEq for Descriptor
impl StructuralPartialEq for Descriptor
Auto Trait Implementations§
impl RefUnwindSafe for Descriptor
impl Send for Descriptor
impl Sync for Descriptor
impl Unpin for Descriptor
impl UnwindSafe for Descriptor
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