palette::num

Trait Abs

source
pub trait Abs {
    // Required method
    fn abs(self) -> Self;
}
Expand description

Method for getting the absolute value of a number.

Required Methods§

source

fn abs(self) -> Self

Returns the absolute value of self.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl Abs for f32

source§

fn abs(self) -> Self

source§

impl Abs for f64

source§

fn abs(self) -> Self

Implementors§