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

Method is_approximate_numeric

graphlite/src/ast/ast.rs:1523–1528  ·  view source on GitHub ↗

Check if this is an approximate numeric type (float, real, double)

(&self)

Source from the content-addressed store, hash-verified

1521
1522 /// Check if this is an approximate numeric type (float, real, double)
1523 pub fn is_approximate_numeric(&self) -> bool {
1524 matches!(
1525 self,
1526 TypeSpec::Float { .. } | TypeSpec::Real | TypeSpec::Double
1527 )
1528 }
1529
1530 /// Get the element type if this is a collection
1531 pub fn element_type(&self) -> Option<&TypeSpec> {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected