MCPcopy Create free account
hub / github.com/GraphLite-AI/GraphLite / is_exact_numeric

Method is_exact_numeric

graphlite/src/ast/ast.rs:1510–1520  ·  view source on GitHub ↗

Check if this is an exact numeric type (integer or decimal)

(&self)

Source from the content-addressed store, hash-verified

1508
1509 /// Check if this is an exact numeric type (integer or decimal)
1510 pub fn is_exact_numeric(&self) -> bool {
1511 matches!(
1512 self,
1513 TypeSpec::Integer
1514 | TypeSpec::BigInt
1515 | TypeSpec::SmallInt
1516 | TypeSpec::Int128
1517 | TypeSpec::Int256
1518 | TypeSpec::Decimal { .. }
1519 )
1520 }
1521
1522 /// Check if this is an approximate numeric type (float, real, double)
1523 pub fn is_approximate_numeric(&self) -> bool {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected