Lines Matching refs:write
37 Value(val) => write!(format, "{}", val),
38 Add(ref left, ref right) => write!(format, "{} + {}", left, right),
39 Sub(ref left, ref right) => write!(format, "{} - {}", left, right),
40 Mul(ref left, ref right) => write!(format, "{} * {}", left, right),
41 Div(ref left, ref right) => write!(format, "{} / {}", left, right),
42 Paren(ref expr) => write!(format, "({})", expr),
51 Value(val) => write!(format, "{}", val),
52 Add(ref left, ref right) => write!(format, "({:?} + {:?})", left, right),
53 Sub(ref left, ref right) => write!(format, "({:?} - {:?})", left, right),
54 Mul(ref left, ref right) => write!(format, "({:?} * {:?})", left, right),
55 Div(ref left, ref right) => write!(format, "({:?} / {:?})", left, right),
56 Paren(ref expr) => write!(format, "[{:?}]", expr),