Trunc

Trait Trunc 

Source
pub trait Trunc: CubePrimitive + Sized {
    // Provided methods
    fn trunc(x: Self) -> Self { ... }
    fn __expand_trunc(
        scope: &mut Scope,
        x: Self::ExpandType,
    ) -> ExpandElementTyped<Self> { ... }
}

Provided Methods§

Source

fn trunc(x: Self) -> Self

Source

fn __expand_trunc( scope: &mut Scope, x: Self::ExpandType, ) -> ExpandElementTyped<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 Trunc for f32

Source§

impl Trunc for f64

Source§

impl Trunc for bf16

Source§

impl Trunc for f16

Implementors§

Source§

impl Trunc for flex32

Source§

impl Trunc for tf32

Source§

impl<P: CubePrimitive + Trunc> Trunc for Line<P>

Source§

impl<const POS: u8> Trunc for ElemExpand<POS>