Check if this is an approximate numeric type (float, real, double)
(&self)
| 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> { |
nothing calls this directly
no outgoing calls
no test coverage detected