Skip to main content

Zero

Trait Zero 

Source
pub unsafe trait Zero {
    // Required method
    fn is_zero(&self) -> bool;
}
Expand description

A minimal alternative to the Zero trait from num-traits, for use in NulTerminated.

May be replaced with the one from num-traits at a later time if so desired.

Required Methods§

Source

fn is_zero(&self) -> bool

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl Zero for *mut c_char

Source§

fn is_zero(&self) -> bool

Implementors§