MCPcopy Create free account
hub / github.com/cel-rust/cel-rust / optional_has_value

Function optional_has_value

cel/src/functions.rs:248–250  ·  view source on GitHub ↗
(This(this): This<Value>)

Source from the content-addressed store, hash-verified

246}
247
248pub fn optional_has_value(This(this): This<Value>) -> Result<bool> {
249 Ok(<&OptionalValue>::try_from(&this)?.value().is_some())
250}
251
252pub fn optional_or_optional(This(this): This<Value>, other: Value) -> Result<Value> {
253 let this_opt: &OptionalValue = (&this).try_into()?;

Callers

nothing calls this directly

Calls 1

valueMethod · 0.80

Tested by

no test coverage detected