pub trait FloatOps:
Sized
+ CubePrimitive
+ PartialOrd
+ CubeTypewhere
Self::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::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§
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
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".