Enum kanjidic_types::SolidSubpattern
source · [−]#[repr(u8)]
pub enum SolidSubpattern {
TopLine,
BottomLine,
ThroughLine,
Other,
}
Expand description
An identifying characteristic of the kanji.
Variants
TopLine
Contains a top line.
BottomLine
Contains a bottom line.
ThroughLine
Contains a through line.
Other
Does not contain any of the above.
Trait Implementations
sourceimpl Clone for SolidSubpattern
impl Clone for SolidSubpattern
sourcefn clone(&self) -> SolidSubpattern
fn clone(&self) -> SolidSubpattern
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for SolidSubpattern
impl Debug for SolidSubpattern
sourceimpl<'de> Deserialize<'de> for SolidSubpattern
impl<'de> Deserialize<'de> for SolidSubpattern
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 Hash for SolidSubpattern
impl Hash for SolidSubpattern
sourceimpl Ord for SolidSubpattern
impl Ord for SolidSubpattern
sourcefn cmp(&self, other: &SolidSubpattern) -> Ordering
fn cmp(&self, other: &SolidSubpattern) -> Ordering
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 PartialEq<SolidSubpattern> for SolidSubpattern
impl PartialEq<SolidSubpattern> for SolidSubpattern
sourcefn eq(&self, other: &SolidSubpattern) -> bool
fn eq(&self, other: &SolidSubpattern) -> bool
sourceimpl PartialOrd<SolidSubpattern> for SolidSubpattern
impl PartialOrd<SolidSubpattern> for SolidSubpattern
sourcefn partial_cmp(&self, other: &SolidSubpattern) -> Option<Ordering>
fn partial_cmp(&self, other: &SolidSubpattern) -> 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 moresourceimpl Serialize for SolidSubpattern
impl Serialize for SolidSubpattern
sourceimpl TryFrom<u8> for SolidSubpattern
impl TryFrom<u8> for SolidSubpattern
type Error = TryFromPrimitiveError<SolidSubpattern>
type Error = TryFromPrimitiveError<SolidSubpattern>
The type returned in the event of a conversion error.
sourcefn try_from(number: u8) -> Result<Self, TryFromPrimitiveError<Self>>
fn try_from(number: u8) -> Result<Self, TryFromPrimitiveError<Self>>
Performs the conversion.
sourceimpl TryFromPrimitive for SolidSubpattern
impl TryFromPrimitive for SolidSubpattern
type Primitive = u8
const NAME: &'static str = _
fn try_from_primitive(
number: Self::Primitive
) -> Result<Self, TryFromPrimitiveError<Self>>
impl Copy for SolidSubpattern
impl Eq for SolidSubpattern
impl StructuralEq for SolidSubpattern
impl StructuralPartialEq for SolidSubpattern
Auto Trait Implementations
impl RefUnwindSafe for SolidSubpattern
impl Send for SolidSubpattern
impl Sync for SolidSubpattern
impl Unpin for SolidSubpattern
impl UnwindSafe for SolidSubpattern
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