| 74 | } |
| 75 | |
| 76 | pub fn fields(&self) -> Option<&'static str> { |
| 77 | match self { |
| 78 | Self::Not => None, |
| 79 | Self::Length => None, |
| 80 | Self::Round => None, |
| 81 | Self::Abs => Some("{\"OPERATOR\": [\"abs\", null]}"), |
| 82 | Self::Floor => Some("{\"OPERATOR\": [\"floor\", null]}"), |
| 83 | Self::Ceil => Some("{\"OPERATOR\": [\"ceiling\", null]}"), |
| 84 | Self::Sqrt => Some("{\"OPERATOR\": [\"sqrt\", null]}"), |
| 85 | Self::Sin => Some("{\"OPERATOR\": [\"sin\", null]}"), |
| 86 | Self::Cos => Some("{\"OPERATOR\": [\"cos\", null]}"), |
| 87 | Self::Tan => Some("{\"OPERATOR\": [\"tan\", null]}"), |
| 88 | Self::Asin => Some("{\"OPERATOR\": [\"asin\", null]}"), |
| 89 | Self::Acos => Some("{\"OPERATOR\": [\"acos\", null]}"), |
| 90 | Self::Atan => Some("{\"OPERATOR\": [\"atan\", null]}"), |
| 91 | Self::Ln => Some("{\"OPERATOR\": [\"ln\", null]}"), |
| 92 | Self::Log => Some("{\"OPERATOR\": [\"log\", null]}"), |
| 93 | Self::AntiLn => Some("{\"OPERATOR\": [\"e ^\", null]}"), |
| 94 | Self::AntiLog => Some("{\"OPERATOR\": [\"10 ^\", null]}"), |
| 95 | _ => unreachable!(), |
| 96 | } |
| 97 | } |
| 98 | } |
| 99 | |
| 100 | #[derive(Debug, Copy, Clone)] |