greedy_enum/
lib.rs

1pub use greedy_enum_derive::FromStr;
2
3/// Custom error type for parsing strings into enum variants.
4#[derive(Debug, thiserror::Error)]
5#[error("No valid variant found for string: '{span}'")]
6pub struct ParseError {
7    pub span: String,
8}