Skip to main content

is_arithmetic

Function is_arithmetic 

Source
pub fn is_arithmetic(types: &Types, id: TypeId) -> bool
Expand description

An arithmetic type, 6.2.5p18: the integer types and the floating types.

_Complex int is here too, although C’s list does not have it, because gcc’s extension is an arithmetic type in every way the rest of the compiler asks about: it is added, compared, converted and initialized like the ones C wrote down.