Trait GetAssertZeroable

Source
pub trait GetAssertZeroable: Zeroable {
    const GET: AssertZeroable<Self> = AssertZeroable::NEW;
}
Expand description

Constructs an AssertZeroable<Self>. Declared to improve the error message when a field does not implement Zeroable.

Provided Associated Constants§

Source

const GET: AssertZeroable<Self> = AssertZeroable::NEW

Gets an AssertZeroable<Self>, a marker type representing that T is Zeroable

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<This: ?Sized + Zeroable> GetAssertZeroable for This