Skip to main content

FloatOps

Trait FloatOps 

Source
pub trait FloatOps:
    Sized
    + CubePrimitive
    + PartialOrd
    + CubeType{
    // Provided methods
    fn min(self, other: Self) -> Self { ... }
    fn max(self, other: Self) -> Self { ... }
    fn clamp(self, min: Self, max: Self) -> Self { ... }
    fn __expand_min(
        scope: &mut Scope,
        this: Self::ExpandType,
        other: Self::ExpandType,
    ) -> Self::ExpandType { ... }
    fn __expand_max(
        scope: &mut Scope,
        this: Self::ExpandType,
        other: Self::ExpandType,
    ) -> Self::ExpandType { ... }
    fn __expand_clamp(
        scope: &mut Scope,
        this: Self::ExpandType,
        min: Self::ExpandType,
        max: Self::ExpandType,
    ) -> Self::ExpandType { ... }
}

Provided Methods§

Source

fn min(self, other: Self) -> Self

Source

fn max(self, other: Self) -> Self

Source

fn clamp(self, min: Self, max: Self) -> Self

Source

fn __expand_min( scope: &mut Scope, this: Self::ExpandType, other: Self::ExpandType, ) -> Self::ExpandType

Source

fn __expand_max( scope: &mut Scope, this: Self::ExpandType, other: Self::ExpandType, ) -> Self::ExpandType

Source

fn __expand_clamp( scope: &mut Scope, this: Self::ExpandType, min: Self::ExpandType, max: Self::ExpandType, ) -> Self::ExpandType

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<T> FloatOps for T
where T: Float,

Source§

impl<T, N> FloatOps for Vector<T, N>
where T: FloatOps + Scalar, N: Size,