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