Absolute

Trait Absolute 

Source
pub trait Absolute: Copy {
    // Provided method
    fn abs(&self) -> Self { ... }
}

Provided Methods§

Source

fn abs(&self) -> 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 Absolute for f32

Source§

fn abs(&self) -> Self

Source§

impl Absolute for f64

Source§

fn abs(&self) -> Self

Source§

impl Absolute for i8

Source§

fn abs(&self) -> Self

Source§

impl Absolute for i16

Source§

fn abs(&self) -> Self

Source§

impl Absolute for i32

Source§

fn abs(&self) -> Self

Source§

impl Absolute for i64

Source§

fn abs(&self) -> Self

Source§

impl Absolute for i128

Source§

fn abs(&self) -> Self

Source§

impl Absolute for isize

Source§

fn abs(&self) -> Self

Source§

impl Absolute for u8

Source§

impl Absolute for u16

Source§

impl Absolute for u32

Source§

impl Absolute for u64

Source§

impl Absolute for u128

Source§

impl Absolute for usize

Implementors§