pub enum JsNumberType {
Integer(i64),
Float(f64),
NaN,
PositiveInfinity,
NegativeInfinity,
}Expand description
JavaScript number type.
JavaScript numbers can be represented as either integers or floats. The engine uses integers when possible for better performance.
§Examples
use just::runner::ds::value::JsNumberType;
let int = JsNumberType::Integer(42);
let float = JsNumberType::Float(3.14);
let infinity = JsNumberType::Float(f64::INFINITY);Variants§
Trait Implementations§
Source§impl Clone for JsNumberType
impl Clone for JsNumberType
Source§impl Debug for JsNumberType
impl Debug for JsNumberType
Source§impl Display for JsNumberType
impl Display for JsNumberType
Source§impl PartialEq for JsNumberType
impl PartialEq for JsNumberType
impl StructuralPartialEq for JsNumberType
Auto Trait Implementations§
impl Freeze for JsNumberType
impl RefUnwindSafe for JsNumberType
impl Send for JsNumberType
impl Sync for JsNumberType
impl Unpin for JsNumberType
impl UnwindSafe for JsNumberType
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