Returns true if this type is one of the integer types.
(&self)
| 432 | |
| 433 | /// Returns true if this type is one of the integer types. |
| 434 | pub fn is_integer(&self) -> bool { |
| 435 | use self::ExpressionType::*; |
| 436 | match self { |
| 437 | I8 | I16 | I32 | I64 | I128 | Isize | U8 | U16 | U32 | U64 | U128 | Usize | Bool => { |
| 438 | true |
| 439 | } |
| 440 | _ => false, |
| 441 | } |
| 442 | } |
| 443 | |
| 444 | /// Returns true if this type is not a primitive type. References are not regarded as |
| 445 | /// primitives for this purpose. |
no outgoing calls
no test coverage detected