pub enum NumberPercentage {
Number(Number),
Percentage(Percentage),
}Variants§
Number(Number)
Percentage(Percentage)
Trait Implementations§
Source§impl Clone for NumberPercentage
impl Clone for NumberPercentage
Source§fn clone(&self) -> NumberPercentage
fn clone(&self) -> NumberPercentage
Returns a duplicate 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 NumberPercentage
impl Debug for NumberPercentage
Source§impl From<NumberPercentage> for Cursor
impl From<NumberPercentage> for Cursor
Source§fn from(value: NumberPercentage) -> Cursor
fn from(value: NumberPercentage) -> Cursor
Converts to this type from the input type.
Source§impl From<NumberPercentage> for Token
impl From<NumberPercentage> for Token
Source§fn from(value: NumberPercentage) -> Token
fn from(value: NumberPercentage) -> Token
Converts to this type from the input type.
Source§impl From<NumberPercentage> for f32
impl From<NumberPercentage> for f32
Source§fn from(val: NumberPercentage) -> Self
fn from(val: NumberPercentage) -> Self
Converts to this type from the input type.
Source§impl Hash for NumberPercentage
impl Hash for NumberPercentage
Source§impl Ord for NumberPercentage
impl Ord for NumberPercentage
Source§fn cmp(&self, other: &NumberPercentage) -> Ordering
fn cmp(&self, other: &NumberPercentage) -> 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<'a> Parse<'a> for NumberPercentage
impl<'a> Parse<'a> for NumberPercentage
Source§impl PartialEq for NumberPercentage
impl PartialEq for NumberPercentage
Source§impl PartialOrd for NumberPercentage
impl PartialOrd for NumberPercentage
Source§impl<'a> Peek<'a> for NumberPercentage
impl<'a> Peek<'a> for NumberPercentage
Source§impl ToCursors for NumberPercentage
impl ToCursors for NumberPercentage
fn to_cursors(&self, s: &mut impl CursorSink)
Source§impl ToNumberValue for NumberPercentage
impl ToNumberValue for NumberPercentage
fn to_number_value(&self) -> Option<f32>
fn to_int_value(&self) -> Option<i32>
impl Copy for NumberPercentage
impl Eq for NumberPercentage
impl StructuralPartialEq for NumberPercentage
Auto Trait Implementations§
impl Freeze for NumberPercentage
impl RefUnwindSafe for NumberPercentage
impl Send for NumberPercentage
impl Sync for NumberPercentage
impl Unpin for NumberPercentage
impl UnwindSafe for NumberPercentage
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