pub trait CEnum<T>where
Self: Debug + Default + Clone + Copy + PartialEq + Hash + PartialOrd + Ord + From<T>,
T: From<Self>,{
// Required method
fn name(self) -> Option<&'static str>;
}Expand description
Trait implemented by all c_enum types.
This mainly exists for documentation, to show which traits and methods are available on all C-style enums defined with this crate. (Click “Show Declaration” in Rustdoc to see the supertraits.)
Required 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.