protospec_build/asg/expression/int.rs
1use super::*;
2
3#[derive(Clone, PartialEq, Debug)]
4pub struct Int {
5 pub value: ConstInt,
6 pub type_: ScalarType,
7 pub span: Span,
8}
9
10impl From<u64> for Int {
11 fn from(from: u64) -> Self {
12 Self {
13 value: ConstInt::U64(from),
14 type_: ScalarType::U64,
15 span: Span::default(),
16 }
17 }
18}