Zero

Trait Zero 

Source
pub trait Zero {
    const ZERO: Self;
}

Required Associated Constants§

Source

const ZERO: Self

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl Zero for f32

Source§

const ZERO: f32 = 0f32

Source§

impl Zero for usize

Source§

const ZERO: usize = 0usize

Implementors§

Source§

impl<T> Zero for Point<T>
where T: Zero,

Source§

impl<T> Zero for Rect<T>
where T: Zero,

Source§

const ZERO: Rect<T>

Source§

impl<T> Zero for Size<T>
where T: Zero,

Source§

const ZERO: Size<T>