pub trait Scalar:
Sized
+ Numerical
+ 'static
+ Display
+ Product
+ Sum
+ Neg
+ One
+ Zero
+ Num
+ NumCast
+ NumAssign
+ NumAssignOps
+ NumAssignRef
+ NumOps
+ NumRef
+ FromPrimitive
+ ToPrimitive
+ Signed
+ Pow<Self, Output = Self>
+ Float
+ FloatConst {
// Provided methods
fn one() -> Self
where Self: Sized { ... }
fn zero() -> Self
where Self: Sized { ... }
}Expand description
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.