(&self)
| 495 | /// The invariant `buffer.len() <= buffer.capacity()` is always upheld. |
| 496 | #[inline] |
| 497 | pub const fn capacity(&self) -> usize { |
| 498 | self.layout.size() |
| 499 | } |
| 500 | |
| 501 | /// Clear all existing data from this buffer. |
| 502 | pub fn clear(&mut self) { |