Trait mg_settings::EnumFromStr [] [src]

pub trait EnumFromStr where Self: Sized {
    fn create(variant: &str, argument: &str) -> Result<Self, String>;
    fn has_argument(variant: &str) -> Result<boolString>;
}

The EnumFromStr trait is used to specify how to construct an enum value from a string.

Required Methods

Create the enum value from the variant string and an argument string.

Check wether the enum variant has an argument.

Implementors