float

Trait Zero

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

Number 0.

Required Methods§

Source

fn zero() -> Self

Returns 0.

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§

impl Zero for f64

Implementors§