pub trait VariantParam: 'static {
const CATEGORY: &'static str;
const VALUE: &'static str;
const PARENT_VALUE: Option<&'static str>;
}Expand description
A type that participates in the variant system.
Declares its category (e.g., "graph"), value (e.g., "SimpleGraph"),
and optional parent in the subtype hierarchy.
Required Associated Constants§
Sourceconst PARENT_VALUE: Option<&'static str>
const PARENT_VALUE: Option<&'static str>
Parent type name in the subtype hierarchy, or None for root types.
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.