Added SAtom::s
This commit is contained in:
parent
9835ceb66e
commit
bce7dfebe9
1 changed files with 7 additions and 0 deletions
|
@ -47,6 +47,13 @@ impl SAtom {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pub fn s(&self) -> String {
|
||||||
|
match self {
|
||||||
|
SAtom::Str(s) => s.clone(),
|
||||||
|
_ => "".to_string(),
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
pub fn f(&self) -> f32 {
|
pub fn f(&self) -> f32 {
|
||||||
match self {
|
match self {
|
||||||
SAtom::Setting(i) => *i as f32,
|
SAtom::Setting(i) => *i as f32,
|
||||||
|
|
Loading…
Reference in a new issue