use std::rc::Rc; #[derive(Debug)] pub enum IrConstant { String(Rc), } #[derive(Debug)] pub struct IrStringConstant { value: String, name: String, } impl IrStringConstant { pub fn new(value: &str, name: &str) -> Self { Self { value: value.into(), name: name.into(), } } pub fn value(&self) -> &str { &self.value } pub fn name(&self) -> &str { &self.name } }