enum_reflect_extern 0.2.0

Dependency for enum_reflect.
Documentation

Enum Reflect Extern

LIBRARY IS IN BETA! SOME FEATURES CAN WORK WRONG!

If you have any error, write about it here

Dependency for enum_reflect

Traits, structs and other for enum_reflect.

Trait EnumReflect automatically implements by #[derive(EnumReflect)].

Installation

cargo add enum_reflect_extern

or

[dependencies]
enum_reflect_extern = "0.2.0"

Example Usage

fn print_any_enum_fields(target_enum: impl EnumReflect) {
    for (field, value) in target_enum.get_named_fields() {
        println!("Field {}", field);
    }
}