(&self)
| 234 | |
| 235 | impl CompiledExpression { |
| 236 | pub fn is_simple(&self) -> bool { |
| 237 | if let [CompiledExpressionPart::Code(_)] = self.parts.as_slice() { |
| 238 | true |
| 239 | } else { |
| 240 | self.parts.is_empty() |
| 241 | } |
| 242 | } |
| 243 | |
| 244 | pub fn build(&self) -> Option<write::Expression> { |
| 245 | if let [CompiledExpressionPart::Code(code)] = self.parts.as_slice() { |
no test coverage detected