pub trait FastInvSqrt {
// Required method
fn fast_invsqrt(x: Self) -> Self;
}Expand description
Implement the fast approximate computation of ‘1/sqrt(x)’ for a type.
Required Methods§
Sourcefn fast_invsqrt(x: Self) -> Self
fn fast_invsqrt(x: Self) -> Self
Fast approximate computation of 1/sqrt(x).
See: https://en.wikipedia.org/wiki/Fast_inverse_square_root And: http://www.lomont.org/papers/2003/InvSqrt.pdf
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.