Zeroable

Trait Zeroable 

Source
pub trait Zeroable {
    // Required method
    fn zero();
}
Expand description

Describes a stateful component that can be reset to a “zero state”. Weather this action involves physical movement is up to the implementation. Do not assume calling zero() is physically safe

Required Methods§

Source

fn zero()

Reset the component to its “zero state” This may cause systems to physically move, based on the implementation

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§