pub trait EditableVariants: VariantName {
    fn editable_variants() -> &'static [&'static str];

    fn editable(variant_name: &str) -> bool { ... }
}
Expand description

Trait to discriminate editable variants from constant variants of an enumeration.

Especially used for a node editor.

Required Methods

Get list of editable variants.

Provided Methods

Check if given variant is editable or not.

Implementors