Trait Abs

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

Provided Methods§

Source

fn abs(x: Self) -> Self

Source

fn __expand_abs( 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 Abs for f32

Source§

impl Abs for f64

Source§

impl Abs for i8

Source§

impl Abs for i16

Source§

impl Abs for i32

Source§

impl Abs for i64

Source§

impl Abs for u8

Source§

impl Abs for u16

Source§

impl Abs for u32

Source§

impl Abs for u64

Source§

impl Abs for bf16

Source§

impl Abs for f16

Implementors§

Source§

impl Abs for flex32

Source§

impl Abs for tf32

Source§

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

Source§

impl<const POS: u8> Abs for FloatExpand<POS>

Source§

impl<const POS: u8> Abs for IntExpand<POS>