pub trait Field: Ring {
const HALF: Self;
const PI: Self;
const SQRT_2: Self;
const INFINITY: Self;
// Required methods
fn sqrt(self) -> Self;
fn exp(self) -> Self;
fn sin(self) -> Self;
fn cos(self) -> Self;
fn tan(self) -> Self;
fn sin_cos(self) -> (Self, Self);
fn ln(self) -> Self;
fn asin(self) -> Self;
fn acos(self) -> Self;
fn atan(self) -> Self;
fn atan2(y: Self, x: Self) -> Self;
}Required Associated Constants§
Required Methods§
fn sqrt(self) -> Self
fn exp(self) -> Self
fn sin(self) -> Self
fn cos(self) -> Self
fn tan(self) -> Self
fn sin_cos(self) -> (Self, Self)
fn ln(self) -> Self
fn asin(self) -> Self
fn acos(self) -> Self
fn atan(self) -> Self
fn atan2(y: Self, x: Self) -> Self
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".