[−][src]Struct ress::tokens::Number
A JS number literal. There are 4 kinds of number literals allowed in JS.
- Decimal Literals - This includes integers and decimals with optional exponent notation
- Hexadecimal Literals - These begin with 0x and consist of numbers 0-9 and letters A-F (case insensitive)
- Octal Literals - These being with 0o and consist of numbers 0-7
- Binary Literals - These begin with 0b and consist of numbers 0 and 1
Trait Implementations
impl<'a> NumberExt for Number<&'a str>
[src]
fn kind(&self) -> NumberKind
[src]
fn is_hex(&self) -> bool
[src]
fn is_bin(&self) -> bool
[src]
fn is_oct(&self) -> bool
[src]
fn is_dec(&self) -> bool
[src]
fn has_exponent(&self) -> bool
[src]
impl NumberExt for Number<String>
[src]
fn kind(&self) -> NumberKind
[src]
fn is_hex(&self) -> bool
[src]
fn is_bin(&self) -> bool
[src]
fn is_oct(&self) -> bool
[src]
fn is_dec(&self) -> bool
[src]
fn has_exponent(&self) -> bool
[src]
impl<'a> From<&'a str> for Number<&'a str>
[src]
impl<T: Clone> Clone for Number<T>
[src]
impl<T: PartialEq> PartialEq<Number<T>> for Number<T>
[src]
impl<'a> PartialEq<str> for Number<&'a str>
[src]
impl<'a> ToString for Number<&'a str>
[src]
impl<T: Debug> Debug for Number<T>
[src]
Auto Trait Implementations
impl<T> Send for Number<T> where
T: Send,
T: Send,
impl<T> Sync for Number<T> where
T: Sync,
T: Sync,
impl<T> Unpin for Number<T> where
T: Unpin,
T: Unpin,
impl<T> RefUnwindSafe for Number<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T> UnwindSafe for Number<T> where
T: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,