Trait StrictStruct

Source
pub trait StrictStruct: StrictProduct {
    const ALL_FIELDS: &'static [&'static str];

    // Provided methods
    fn strict_check_fields() { ... }
    fn strict_type_info() -> TypeInfo<Self> { ... }
}

Required Associated Constants§

Source

const ALL_FIELDS: &'static [&'static str]

Provided Methods§

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.

Implementations on Foreign Types§

Source§

impl<T> StrictStruct for Box<T>
where T: Default + StrictStruct,

Source§

const ALL_FIELDS: &'static [&'static str] = T::ALL_FIELDS

Implementors§

Source§

impl StrictStruct for Sizing

Source§

const ALL_FIELDS: &'static [&'static str]

Source§

impl StrictStruct for Variant

Source§

const ALL_FIELDS: &'static [&'static str]