Skip to main content

Float

Trait Float 

Source
pub trait Float: RealField + Copy { }
Expand description

Trait alias for floating-point types supported by this crate.

Both f32 and f64 satisfy this bound. All public generic types default to f32 for backward compatibility.

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.

Implementors§

Source§

impl<T: RealField + Copy> Float for T