mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-02 17:45:28 +00:00
make members public (in lib context)
This commit is contained in:
parent
9cf434fdab
commit
d0acac1686
1 changed files with 2 additions and 10 deletions
|
|
@ -7,8 +7,8 @@ pub enum Level {
|
||||||
}
|
}
|
||||||
|
|
||||||
pub struct Header {
|
pub struct Header {
|
||||||
value: GString,
|
pub value: GString,
|
||||||
level: Level,
|
pub level: Level,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Header {
|
impl Header {
|
||||||
|
|
@ -44,12 +44,4 @@ impl Header {
|
||||||
value: GString::from(value.as_str()),
|
value: GString::from(value.as_str()),
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn level(&self) -> &Level {
|
|
||||||
&self.level
|
|
||||||
}
|
|
||||||
|
|
||||||
pub fn value(&self) -> &str {
|
|
||||||
self.value.as_str()
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue