smooth_buffer

Trait Float

Source
pub trait Float:
    Default
    + PartialEq
    + Copy
    + AddAssign
    + MulAssign
    + SubAssign
    + DivAssign
    + Add<Output = Self>
    + Mul<Output = Self>
    + Sub<Output = Self>
    + Div<Output = Self>
    + Neg<Output = Self> {
    // Required methods
    fn zero() -> Self;
    fn two() -> Self;
    fn four() -> Self;
    fn max() -> Self;
    fn from_usize(value: usize) -> Self;
    fn get_max(a: Self, b: Self) -> Self;
    fn get_min(a: Self, b: Self) -> Self;
    fn exp(a: Self) -> Self;
}
Expand description

A floating point type. Currently implemented for f32 and f64.

Required Methods§

Source

fn zero() -> Self

Source

fn two() -> Self

Source

fn four() -> Self

Source

fn max() -> Self

Source

fn from_usize(value: usize) -> Self

Source

fn get_max(a: Self, b: Self) -> Self

Source

fn get_min(a: Self, b: Self) -> Self

Source

fn exp(a: Self) -> Self

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 Float for f32

Source§

fn zero() -> Self

Source§

fn two() -> Self

Source§

fn four() -> Self

Source§

fn max() -> Self

Source§

fn from_usize(value: usize) -> Self

Source§

fn get_max(a: Self, b: Self) -> Self

Source§

fn get_min(a: Self, b: Self) -> Self

Source§

fn exp(a: Self) -> Self

Source§

impl Float for f64

Source§

fn zero() -> Self

Source§

fn two() -> Self

Source§

fn four() -> Self

Source§

fn max() -> Self

Source§

fn from_usize(value: usize) -> Self

Source§

fn get_max(a: Self, b: Self) -> Self

Source§

fn get_min(a: Self, b: Self) -> Self

Source§

fn exp(a: Self) -> Self

Implementors§