Skip to main content

Abs

Trait Abs 

Source
pub trait Abs {
    type Output;

    // Required method
    fn abs(self) -> Self::Output;
}

Required Associated Types§

Required Methods§

Source

fn abs(self) -> Self::Output

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl Abs for f32

Source§

type Output = f32

Source§

fn abs(self) -> Self::Output

Source§

impl Abs for f64

Source§

type Output = f64

Source§

fn abs(self) -> Self::Output

Source§

impl<'a, A, S, D> Abs for &'a ArrayBase<S, D>
where A: Clone + Signed, D: Dimension, S: Data<Elem = A>,

Source§

type Output = ArrayBase<OwnedRepr<A>, D>

Source§

fn abs(self) -> Self::Output

Source§

impl<A, S, D> Abs for ArrayBase<S, D>
where A: Clone + Signed, D: Dimension, S: Data<Elem = A>,

Source§

type Output = ArrayBase<OwnedRepr<A>, D>

Source§

fn abs(self) -> Self::Output

Implementors§