Enum leo_asg::const_value::ConstInt [−][src]
pub enum ConstInt { I8(i8), I16(i16), I32(i32), I64(i64), I128(i128), U8(u8), U16(u16), U32(u32), U64(u64), U128(u128), }
Expand description
Constant integer values in a program.
Variants
Tuple Fields of I8
0: i8
Tuple Fields of I16
0: i16
Tuple Fields of I32
0: i32
Tuple Fields of I64
0: i64
Tuple Fields of I128
0: i128
Tuple Fields of U8
0: u8
Tuple Fields of U16
0: u16
Tuple Fields of U32
0: u32
Tuple Fields of U64
0: u64
Tuple Fields of U128
0: u128
Implementations
pub fn parse(
int_type: &IntegerType,
value: &str,
span: &Span
) -> Result<ConstInt, AsgConvertError>
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for ConstInt
impl UnwindSafe for ConstInt
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more