Trait Constants
Source pub trait Constants {
// Required methods
unsafe fn π() -> Self;
unsafe fn ε() -> Self;
unsafe fn e() -> Self;
}
Expand description
returns π
§Safety
Refer to Self
’s safety documentation.
This function is unsafe only when used with a FFloat
; Calling it with a f64
or a f32
is safe.
returns ε
§Safety
Refer to Self
’s safety documentation.
This function is unsafe only when used with a FFloat
; Calling it with a f64
or a f32
is safe.
returns E (euler’s number)
§Safety
Refer to Self
’s safety documentation.
This function is unsafe only when used with a FFloat
; Calling it with a f64
or a f32
is safe.
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.