Trait libera::all::One

source ·
pub trait One: Ident {
    // Required method
    fn new_one() -> Self;

    // Provided method
    fn set_one(&mut self)
       where Self: Sized { ... }
}
Available on crate feature numera only.
Expand description

numera A number that can represent 1, the multiplicative identity.

See also: ConstOne.

This trait is mutually exclusive with NonOne.

Required Methods§

source

fn new_one() -> Self

Returns a new multiplicative identity, 1.

Provided Methods§

source

fn set_one(&mut self)where Self: Sized,

Sets this number to 1.

Implementations on Foreign Types§

source§

impl One for u8

source§

impl One for f32

source§

impl One for u32

source§

impl One for f64

source§

impl One for TwoFloat

source§

fn new_one() -> TwoFloat

source§

impl One for usize

source§

impl One for i64

source§

impl One for f16

source§

impl One for u16

source§

impl One for UBig

source§

fn new_one() -> UBig

source§

impl One for i128

source§

impl One for ()

source§

fn new_one()

Returns itself.

source§

fn set_one(&mut self)

No op.

source§

impl One for isize

source§

impl One for u128

source§

impl One for IBig

source§

fn new_one() -> IBig

source§

impl One for bf16

source§

impl One for i16

source§

impl One for u64

source§

impl One for i8

source§

impl One for i32

Implementors§

source§

impl One for NonNegativeInteger

source§

impl One for NonZeroInteger

source§

impl One for PositiveInteger

source§

impl One for Rational

source§

impl One for Integer

source§

impl One for NonZeroI8

source§

impl One for NonZeroI16

source§

impl One for NonZeroI32

source§

impl One for NonZeroI64

source§

impl One for NonZeroI128

source§

impl One for NonZeroIsize

source§

impl One for NonZeroU8

source§

impl One for NonZeroU16

source§

impl One for NonZeroU32

source§

impl One for NonZeroU64

source§

impl One for NonZeroU128

source§

impl One for NonZeroUsize

source§

impl One for BrainFloat16

source§

impl One for DecFloat32

source§

impl One for DecFloat64

source§

impl One for DecFloat128

source§

impl One for Float16

source§

impl One for Float32

source§

impl One for Float64

source§

impl One for Integer8

source§

impl One for Integer16

source§

impl One for Integer32

source§

impl One for Integer64

source§

impl One for Integer128

source§

impl One for IntegerBig

source§

impl One for NonNegativeInteger8

source§

impl One for NonNegativeInteger16

source§

impl One for NonNegativeInteger32

source§

impl One for NonNegativeInteger64

source§

impl One for NonNegativeInteger128

source§

impl One for NonZeroInteger8

source§

impl One for NonZeroInteger16

source§

impl One for NonZeroInteger32

source§

impl One for NonZeroInteger64

source§

impl One for NonZeroInteger128

source§

impl One for PositiveInteger8

source§

impl One for PositiveInteger16

source§

impl One for PositiveInteger32

source§

impl One for PositiveInteger64

source§

impl One for PositiveInteger128

source§

impl One for Rational8

source§

impl One for Rational16

source§

impl One for Rational32

source§

impl One for Rational64

source§

impl One for Rational128

source§

impl One for TwoFloat128