#[non_exhaustive]pub enum NumericType {
Integer,
Number,
}Expand description
Numeric type flag, as used by Token::Number and
Token::Dimension (spec §4.3.12, “Consume a number”).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Integer
The number had no fractional part or exponent.
Number
The number had a fractional part and/or an exponent.
Trait Implementations§
Source§impl Clone for NumericType
impl Clone for NumericType
Source§fn clone(&self) -> NumericType
fn clone(&self) -> NumericType
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for NumericType
Source§impl Debug for NumericType
impl Debug for NumericType
impl Eq for NumericType
Source§impl PartialEq for NumericType
impl PartialEq for NumericType
impl StructuralPartialEq for NumericType
Auto Trait Implementations§
impl Freeze for NumericType
impl RefUnwindSafe for NumericType
impl Send for NumericType
impl Sync for NumericType
impl Unpin for NumericType
impl UnsafeUnpin for NumericType
impl UnwindSafe for NumericType
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