Skip to main content

Real

Trait Real 

Source
pub trait Real: Scalar {
    // Required methods
    fn abs(self) -> Self;
    fn sqrt(self) -> Self;
}
Expand description

Floating-point scalar used by spatial algorithms.

Required Methods§

Source

fn abs(self) -> Self

Absolute value.

Source

fn sqrt(self) -> Self

Square root.

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.

Implementations on Foreign Types§

Source§

impl Real for f32

Source§

fn abs(self) -> Self

Source§

fn sqrt(self) -> Self

Source§

impl Real for f64

Source§

fn abs(self) -> Self

Source§

fn sqrt(self) -> Self

Implementors§