Trait cosmic::cosmic_theme::palette::num::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) -> f32

source§

impl Abs for f64

source§

fn abs(self) -> f64

Implementors§