pub trait EnumVariantsStrings: Sized {
// Required methods
fn from_str(input: &str) -> Result<Self, &[&str]>;
fn to_str(&self) -> &'static str;
}
Required Methods§
Object Safety§
This trait is not object safe.
pub trait EnumVariantsStrings: Sized {
// Required methods
fn from_str(input: &str) -> Result<Self, &[&str]>;
fn to_str(&self) -> &'static str;
}