Skip to main content

integer_info

Function integer_info 

Source
pub fn integer_info(
    types: &Types,
    id: TypeId,
    target: &TargetInfo,
) -> Option<IntegerInfo>
Expand description

The signedness and width of an integer type, and None when id is not one.

Every integer type C has. bool is one bit and unsigned, an enumeration answers as whatever it is represented in, a _BitInt answers with the width it was written with, and _Atomic and a typedef name answer as the type underneath. The coverage is the point: the shape used by the conversion ranks in convert.rs deliberately covers only the two the ranks are defined over, and folding a constant with that one would get bool and every enumeration wrong rather than refusing them.