Trait cosmic::cosmic_theme::palette::num::One

source ·
pub trait One {
    // Required method
    fn one() -> Self;
}
Expand description

Methods for the value 1.

Required Methods§

source

fn one() -> Self

Create a new 1 value.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl One for f32

source§

impl One for f64

source§

impl One for u8

source§

fn one() -> u8

source§

impl One for u16

source§

impl One for u32

source§

impl One for u64

source§

impl One for u128

Implementors§