1 2 3 4 5 6 7 8 9 10 11 12
use crate::parser::{Expression, Result, Value}; #[derive(Debug)] pub(in crate::parser) struct Str { pub s: String, } impl Expression for Str { fn calculate(&self, _: &[u8]) -> Result<Value> { Ok(Value::String(self.s.clone())) } }