Skip to main content

InitStatus

Trait InitStatus 

Source
pub unsafe trait InitStatus {
    const IS_INIT: bool;
    const IS_UNINIT: bool = _;
}
Expand description

§Safety

[IS_INIT] and [IS_UNINIT] must both be set correctly to acccurately represent the state of the field.

Required Associated Constants§

Provided Associated Constants§

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§

Source§

impl InitStatus for Uninit

Source§

const IS_INIT: bool = false

Source§

impl<T, M> InitStatus for Init<T, M>
where T: ?Sized, M: ?Sized + Marker,

Source§

const IS_INIT: bool = true