FloatOps

Trait FloatOps 

Source
pub trait FloatOps:
    CubePrimitive
    + PartialOrd
    + Sized
    + CubeType<ExpandType: FloatOpsExpand> {
    // 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 as CubeType>::ExpandType,
        other: <Self as CubeType>::ExpandType,
    ) -> <Self as CubeType>::ExpandType { ... }
    fn __expand_max(
        scope: &mut Scope,
        this: <Self as CubeType>::ExpandType,
        other: <Self as CubeType>::ExpandType,
    ) -> <Self as CubeType>::ExpandType { ... }
    fn __expand_clamp(
        scope: &mut Scope,
        this: <Self as CubeType>::ExpandType,
        min: <Self as CubeType>::ExpandType,
        max: <Self as CubeType>::ExpandType,
    ) -> <Self as CubeType>::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 as CubeType>::ExpandType, other: <Self as CubeType>::ExpandType, ) -> <Self as CubeType>::ExpandType

Source

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

Source

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

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§