Skip to main content

Abs

Trait Abs 

Source
pub trait Abs:
    CubePrimitive
    + CubeType<ExpandType: AbsExpand<AbsElem = Self::AbsElem, AbsOut = NativeExpand<Self::WithScalar<Self::AbsElem>>>>
    + Sized {
    type AbsElem: Scalar;

    // Provided methods
    fn abs(self) -> Self::WithScalar<Self::AbsElem> { ... }
    fn __expand_abs(
        scope: &mut Scope,
        x: NativeExpand<Self>,
    ) -> NativeExpand<Self::WithScalar<Self::AbsElem>> { ... }
}

Required Associated Types§

Provided Methods§

Source

fn abs(self) -> Self::WithScalar<Self::AbsElem>

Source

fn __expand_abs( scope: &mut Scope, x: NativeExpand<Self>, ) -> NativeExpand<Self::WithScalar<Self::AbsElem>>

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementations on Foreign Types§

Source§

impl Abs for Complex<f32>

Source§

impl Abs for Complex<f64>

Source§

impl Abs for bf16

Source§

impl Abs for f16

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 isize

Source§

impl Abs for u8

Source§

impl Abs for u16

Source§

impl Abs for u32

Source§

impl Abs for u64

Source§

impl Abs for usize

Implementors§