Crate mg_settings [] [src]

Parse config files.

Usage

Call the parse function on the input.

Modules

errors

Parse and io error type.

key

Type for representing keys and functions for parsing strings into Keys.

settings

Settings manager.

Macros

rtry
rtry_no_return

Structs

Config

The parsing configuration.

MetaData

Command/setting meta-data coming from the attributes. See EnumMetaData to see the list of supported attributes.

ParseResult

The commands and errors from parsing a config file.

Parser

The config parser.

Enums

Command

The Command enum represents a command from a config file.

Value

The Value enum represents a value along with its type.

Traits

CompletionValues

Trait to specify the completion values for a type.

EnumFromStr

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

EnumMetaData

Tre EnumMetaData trait is used to get associated meta-data for the enum variants. The meta-data is specified using the following attributes:

SettingCompletion

Trait specifying the value completions for settings.

SpecialCommand

Trait for converting an identifier like "/" to a special command.