pub trait StringEnum {
// Required method
fn to_str(&self) -> &str;
}Expand description
Should be implemented for any enum that can be represented as a String.
This is mostly used for ObsSourceBuilders.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".