Skip to main content

Zeroable

Trait Zeroable 

Source
pub unsafe trait Zeroable:
    Copy
    + Send
    + Sync
    + 'static { }
Expand description

§Safety

Implementors must be plain numeric types for which all-zero bytes are valid and that are not zero-sized.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementations on Foreign Types§

Source§

impl Zeroable for f32

Source§

impl Zeroable for i32

Source§

impl Zeroable for u8

Source§

impl Zeroable for u16

Source§

impl Zeroable for u32

Implementors§