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 u8

source§

const ZERO: Self = 0u8

source§

impl ConstZero for u16

source§

const ZERO: Self = 0u16

source§

impl ConstZero for u32

source§

const ZERO: Self = 0u32

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 = _