Skip to main content

Abs

Trait Abs 

Source
pub trait Abs:
    Sized
    + CubePrimitive
    + CubeType
where Self::ExpandType: AbsExpand<AbsElem = Self::AbsElem, AbsOut = NativeExpand<Self::WithScalar<Self::AbsElem>>>,
{ 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§

Source§

impl Abs for e2m1

Source§

impl Abs for e4m3

Source§

impl Abs for e5m2

Source§

impl Abs for flex32

Source§

impl Abs for tf32

Source§

impl Abs for ue8m0

Source§

impl<Marker> Abs for DynamicScalar<Marker>
where Marker: 'static,

Source§

impl<P, N> Abs for Vector<P, N>
where P: Scalar + Abs, N: Size,

Source§

type AbsElem = <P as Abs>::AbsElem