This commit is contained in:
Edgar 2023-10-17 14:09:23 +02:00
parent 41b8d5bd25
commit 723bef8f5e
No known key found for this signature in database
GPG key ID: 70ADAE8F35904387
2 changed files with 4 additions and 0 deletions

View file

@ -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 {

View file

@ -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,