Module parser
Source - TomlParser
- ConfigValue
- This enum represents the possible values
that can be parsed from a configuration file.
- FileFormat
- Represents the supported file formats for configuration parsing.
- ParserError
- Represents various errors that can occur during the parsing process.
Leverages the
thiserror crate for structured and user-friendly error
handling.
- FromConfigValue
- Trait to convert a
ConfigValue to a specific type. - Parser
- Trait defining the interface for parsers.
Parsers must be thread-safe (
Send + Sync).
- get_file_extension
- Function to get the file extension from a path.
- get_parser
- Function to get a parser based on file extension.
Returns an
Option containing the parser if the extension is supported.