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

Method is_number

crates/gitql-core/src/values/base.rs:387–389  ·  view source on GitHub ↗

Return true if this value is [`IntValue`] or [`FloatValue`]

(&self)

Source from the content-addressed store, hash-verified

385
386 /// Return true if this value is [`IntValue`] or [`FloatValue`]
387 pub fn is_number(&self) -> bool {
388 self.is_int() || self.is_float()
389 }
390
391 /// Return true if this value is [`BoolValue`]
392 pub fn is_bool(&self) -> bool {

Callers

nothing calls this directly

Calls 2

is_intMethod · 0.45
is_floatMethod · 0.45

Tested by

no test coverage detected