Skip to main content

Abs

Trait Abs 

Source
pub trait Abs<T = Self> {
    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

Available on crate feature std only.
Source§

type Output = f32

Source§

fn abs(self) -> Self::Output

Implementors§