mirror of
https://github.com/rm-dr/daisy
synced 2025-04-10 07:03:24 -07:00
17 lines
275 B
Rust
17 lines
275 B
Rust
#[derive(Debug)]
|
|
#[derive(Clone)]
|
|
pub enum Constant {
|
|
Pi,
|
|
Phi,
|
|
E
|
|
}
|
|
|
|
impl Constant {
|
|
pub fn to_string(&self) -> String {
|
|
match self {
|
|
Constant::Pi => { String::from("π") },
|
|
Constant::Phi => { String::from("φ") },
|
|
Constant::E => { String::from("e") },
|
|
}
|
|
}
|
|
} |