Trait salak::EnumProperty [−][src]
pub trait EnumProperty: Sized {
fn str_to_enum(val: &str) -> Result<Self, PropertyError>;
}
Expand description
Any enum implements this trait is automatically implementing IsProperty
.
Required methods
fn str_to_enum(val: &str) -> Result<Self, PropertyError>
fn str_to_enum(val: &str) -> Result<Self, PropertyError>
Convert str to enum.