mirror of
https://github.com/edg-l/teeconfig.git
synced 2024-09-19 09:12: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)]
|
#[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
|
||||||
pub struct ConfigEntry {
|
pub struct ConfigEntry {
|
||||||
/// The description of this config entry.
|
/// The description of this config entry.
|
||||||
|
@ -46,6 +47,7 @@ pub struct ConfigEntry {
|
||||||
pub symbol: String,
|
pub symbol: String,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// The type of the entry.
|
||||||
#[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
|
#[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
|
||||||
pub enum EntryType {
|
pub enum EntryType {
|
||||||
Str {
|
Str {
|
||||||
|
|
|
@ -57,6 +57,7 @@ impl<'input> Iterator for ConfigLexer<'input> {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// A value for the given config line.
|
||||||
#[derive(Debug, Clone)]
|
#[derive(Debug, Clone)]
|
||||||
pub enum Value {
|
pub enum Value {
|
||||||
Int(i64),
|
Int(i64),
|
||||||
|
@ -65,6 +66,7 @@ pub enum Value {
|
||||||
Key(String),
|
Key(String),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// A line from a teeworlds/ddnet config file.
|
||||||
#[derive(Debug, Clone)]
|
#[derive(Debug, Clone)]
|
||||||
pub struct ConfigLine {
|
pub struct ConfigLine {
|
||||||
pub name: String,
|
pub name: String,
|
||||||
|
|
Loading…
Reference in a new issue