pub trait CMath {
// Required methods
fn cos(x: f32) -> f32;
fn exp2(x: f32) -> f32;
fn sin(x: f32) -> f32;
fn sqrt(x: f32) -> f32;
}
Required Methods§
fn cos(x: f32) -> f32
fn exp2(x: f32) -> f32
fn sin(x: f32) -> f32
fn sqrt(x: f32) -> f32
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.