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

Method not_op

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

Source from the content-addressed store, hash-verified

284 }
285
286 fn not_op(&self) -> Result<Box<dyn Value>, String> {
287 Ok(Box::new(BoolValue::new(!self.value)))
288 }
289
290 fn cast_op(&self, target_type: &Box<dyn DataType>) -> Result<Box<dyn Value>, String> {
291 // Cast to Int Type

Callers 1

evaluate_prefix_unaryFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected