Enum ucd_parse::UnicodeDataNumeric
source · pub enum UnicodeDataNumeric {
Integer(i64),
Rational(i64, i64),
}
Expand description
A numeric value corresponding to characters with Numeric_Type=Numeric
.
A numeric value can either be a signed integer or a rational number.
Variants§
Integer(i64)
An integer.
Rational(i64, i64)
A rational number. The first is the numerator and the latter is the denominator.
Trait Implementations§
source§impl Clone for UnicodeDataNumeric
impl Clone for UnicodeDataNumeric
source§fn clone(&self) -> UnicodeDataNumeric
fn clone(&self) -> UnicodeDataNumeric
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 UnicodeDataNumeric
impl Debug for UnicodeDataNumeric
source§impl Display for UnicodeDataNumeric
impl Display for UnicodeDataNumeric
source§impl FromStr for UnicodeDataNumeric
impl FromStr for UnicodeDataNumeric
source§impl PartialEq for UnicodeDataNumeric
impl PartialEq for UnicodeDataNumeric
source§fn eq(&self, other: &UnicodeDataNumeric) -> bool
fn eq(&self, other: &UnicodeDataNumeric) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for UnicodeDataNumeric
impl Eq for UnicodeDataNumeric
impl StructuralEq for UnicodeDataNumeric
impl StructuralPartialEq for UnicodeDataNumeric
Auto Trait Implementations§
impl RefUnwindSafe for UnicodeDataNumeric
impl Send for UnicodeDataNumeric
impl Sync for UnicodeDataNumeric
impl Unpin for UnicodeDataNumeric
impl UnwindSafe for UnicodeDataNumeric
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