protospec_build/asg/expression/
cast.rs

1use super::*;
2
3#[derive(PartialEq, Clone, Debug)]
4pub struct CastExpression {
5    pub inner: Box<Expression>,
6    pub type_: Type,
7    pub span: Span,
8}
9
10impl AsgExpression for CastExpression {
11    fn get_type(&self) -> Option<Type> {
12        Some(self.type_.clone())
13    }
14}