Trait ConstDataStruct

Source
pub trait ConstDataStruct {
    const DEFAULT: Self;
}
Expand description

The macro’s const option will implement this trait for the structure.

Required Associated Constants§

Source

const DEFAULT: Self

The constant default value of the structure.

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§