euclid::num

Trait Zero

Source
pub trait Zero {
    // Required method
    fn zero() -> Self;
}

Required Methods§

Source

fn 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.

Implementors§

Source§

impl<T: Zero> Zero for T

Source§

impl<T: Zero, U> Zero for Length<T, U>

Source§

impl<T: Zero, U> Zero for Point2D<T, U>

Source§

impl<T: Zero, U> Zero for Point3D<T, U>

Source§

impl<T: Zero, U> Zero for Size2D<T, U>

Source§

impl<T: Zero, U> Zero for Size3D<T, U>

Source§

impl<T: Zero, U> Zero for Vector2D<T, U>

Source§

impl<T: Zero, U> Zero for Vector3D<T, U>