pub trait Rational:
Clone
+ Add<Output = Self>
+ Sub<Output = Self>
+ Mul<Output = Self>
+ Div<Output = Self>
+ From<f64>
+ PartialEq
+ Debug {
// Required method
fn pow(self, rhs: Self) -> Self;
}Expand description
This is the trait bounding what is necessary to be the domain/range of any generic function
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".