LitIntType in rustc_ast::ast - Rust (original) (raw)

pub enum LitIntType {
    Signed(IntTy),
    Unsigned(UintTy),
    Unsuffixed,
}

Expand description

Type of the integer literal based on provided suffix.

§

e.g. 42_i32.

§

e.g. 42_u32.

§

e.g. 42.

§

§

§

§

§

§

§

§

Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.

Size: 2 bytes

Size for each variant: