Trait uom::ConstZero

source ·
pub trait ConstZero {
    const ZERO: Self;
}
Expand description

Helper trait to identify the zero value of a type at compile time.

use uom::ConstZero;

const ORIGIN: (Length, Length, Length) = (Length::ZERO, Length::ZERO, Length::ZERO);

Required Associated Constants§

source

const ZERO: Self

Constant representing the zero value.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl ConstZero for f32

source§

const ZERO: Self = 0f32

source§

impl ConstZero for f64

source§

const ZERO: Self = 0f64

source§

impl ConstZero for i32

source§

const ZERO: Self = 0i32

source§

impl ConstZero for i64

source§

const ZERO: Self = 0i64

source§

impl ConstZero for isize

source§

const ZERO: Self = 0isize

source§

impl ConstZero for u32

source§

const ZERO: Self = 0u32

source§

impl ConstZero for u64

source§

const ZERO: Self = 0u64

source§

impl ConstZero for usize

source§

const ZERO: Self = 0usize

Implementors§

source§

impl<D, U, V> ConstZero for Quantity<D, U, V>
where D: Dimension + ?Sized, U: Units<V> + ?Sized, V: Num + Conversion<V> + ConstZero,

source§

const ZERO: Self = _