mirror of
https://github.com/YGGverse/Yoda.git
synced 2025-01-15 17:20:08 +00:00
make members public (in lib context)
This commit is contained in:
parent
9cf434fdab
commit
d0acac1686
@ -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…
x
Reference in New Issue
Block a user