(&mut self, s: &str)
| 145 | |
| 146 | impl Arena { |
| 147 | pub fn put(&mut self, s: &str) -> StrRef { |
| 148 | let off = self.buf.len() as u32; |
| 149 | self.buf.extend_from_slice(s.as_bytes()); |
| 150 | (off, s.len() as u32) |
| 151 | } |
| 152 | |
| 153 | /// Not used by the seed emitter yet — R2 (docstring/signature/etc.). Kept |
| 154 | /// so the arena API is complete alongside the layout it feeds. |