Trait mz_lowertest::MzReflect

source ·
pub trait MzReflect {
    // Required method
    fn add_to_reflected_type_info(rti: &mut ReflectedTypeInfo);
}
Expand description

For to_json to create deserializable JSON for an instance of an type, the type must derive this trait.

Required Methods§

source

fn add_to_reflected_type_info(rti: &mut ReflectedTypeInfo)

Adds names and types of the fields of the struct or enum to rti.

The corresponding implementation of this method will be recursively called for each type referenced by the struct or enum. Check out the crate README for more details.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<T: MzReflect> MzReflect for Vec<T>

Implementors§