(&mut self, c: char)
| 181 | /// failure. |
| 182 | #[inline] |
| 183 | pub fn push(&mut self, c: char) -> Result<(), OutOfMemory> { |
| 184 | self.reserve(c.len_utf8())?; |
| 185 | self.inner.push(c); |
| 186 | Ok(()) |
| 187 | } |
| 188 | |
| 189 | /// Same as [`std::string::String::push_str`] but returns an error on |
| 190 | /// allocation failure. |