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