palette::num

Trait 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§

fn one() -> Self

source§

impl One for f64

source§

fn one() -> Self

source§

impl One for u8

source§

fn one() -> Self

source§

impl One for u16

source§

fn one() -> Self

source§

impl One for u32

source§

fn one() -> Self

source§

impl One for u64

source§

fn one() -> Self

source§

impl One for u128

source§

fn one() -> Self

Implementors§