pub trait Number:
Add<Output = Self>
+ Sub<Output = Self>
+ Copy
+ Clone
+ PartialOrd
+ PartialEq
+ Display
+ FromStr {
// Required methods
fn write_to_string(
&self,
writer: &mut String,
format: impl Into<NumberFormat>,
);
fn to_f64(&self) -> f64;
fn from_f64(v: f64) -> Self;
}Required Methods§
fn write_to_string(&self, writer: &mut String, format: impl Into<NumberFormat>)
fn to_f64(&self) -> f64
fn from_f64(v: f64) -> Self
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".