pub struct Number(/* private fields */);Expand description
Represents a token with Kind::Number. Use T![Number] to refer to this.
Implementations§
Trait Implementations§
Source§impl Ord for Number
impl Ord for Number
Source§impl PartialOrd for Number
impl PartialOrd for Number
Source§impl SemanticEq for Number
impl SemanticEq for Number
Source§fn semantic_eq(&self, s: &Self) -> bool
fn semantic_eq(&self, s: &Self) -> bool
Returns
true if self and other are semantically equal.Source§impl ToCursors for Number
impl ToCursors for Number
fn to_cursors(&self, s: &mut impl CursorSink)
Source§impl ToNumberValue for Number
impl ToNumberValue for Number
fn to_number_value(&self) -> Option<f32>
fn to_int_value(&self) -> Option<i32>
impl Copy for Number
impl Eq for Number
impl StructuralPartialEq for Number
Auto Trait Implementations§
impl Freeze for Number
impl RefUnwindSafe for Number
impl Send for Number
impl Sync for Number
impl Unpin for Number
impl UnwindSafe for Number
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