MCPcopy Create free account
hub / github.com/AmrDeveloper/GQL / bang_op

Method bang_op

crates/gitql-core/src/values/boolean.rs:57–59  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

55 }
56
57 fn bang_op(&self) -> Result<Box<dyn Value>, String> {
58 Ok(Box::new(BoolValue::new(!self.value)))
59 }
60
61 fn logical_or_op(&self, other: &Box<dyn Value>) -> Result<Box<dyn Value>, String> {
62 if let Some(other_bool) = other.as_any().downcast_ref::<BoolValue>() {

Callers 1

evaluate_prefix_unaryFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected