mirror of
https://github.com/edg-l/teeconfig.git
synced 2024-11-09 09:38:25 +00:00
docs
This commit is contained in:
parent
41b8d5bd25
commit
723bef8f5e
|
@ -32,6 +32,7 @@ bitflags! {
|
|||
}
|
||||
}
|
||||
|
||||
/// A configuration entry parsed from the header source file.
|
||||
#[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
|
||||
pub struct ConfigEntry {
|
||||
/// The description of this config entry.
|
||||
|
@ -46,6 +47,7 @@ pub struct ConfigEntry {
|
|||
pub symbol: String,
|
||||
}
|
||||
|
||||
/// The type of the entry.
|
||||
#[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
|
||||
pub enum EntryType {
|
||||
Str {
|
||||
|
|
|
@ -57,6 +57,7 @@ impl<'input> Iterator for ConfigLexer<'input> {
|
|||
}
|
||||
}
|
||||
|
||||
/// A value for the given config line.
|
||||
#[derive(Debug, Clone)]
|
||||
pub enum Value {
|
||||
Int(i64),
|
||||
|
@ -65,6 +66,7 @@ pub enum Value {
|
|||
Key(String),
|
||||
}
|
||||
|
||||
/// A line from a teeworlds/ddnet config file.
|
||||
#[derive(Debug, Clone)]
|
||||
pub struct ConfigLine {
|
||||
pub name: String,
|
||||
|
|
Loading…
Reference in a new issue