(ftx: &FunctionContext)
| 215 | } |
| 216 | |
| 217 | pub fn optional_none(ftx: &FunctionContext) -> Result<Value> { |
| 218 | if ftx.this.is_some() || !ftx.args.is_empty() { |
| 219 | return Err(ftx.error("unsupported function")); |
| 220 | } |
| 221 | Ok(Value::Opaque(Arc::new(OptionalValue::none()))) |
| 222 | } |
| 223 | |
| 224 | pub fn optional_of(ftx: &FunctionContext, value: Value) -> Result<Value> { |
| 225 | if ftx.this.is_some() { |