pub trait Numeric: Sized {
const NAME: &'static str;
// Required methods
fn as_f64(self) -> f64;
fn from_value(value: &Value) -> Option<Self>;
}
Expand description
A trait for types that can represent a JS number
.
Required Associated Constants§
Required Methods§
Object Safety§
This trait is not object safe.