(&self)
| 494 | /// Returns whether the slice is empty. |
| 495 | #[must_use] |
| 496 | pub fn is_empty(&self) -> bool { |
| 497 | match &self.0 { |
| 498 | BeefData::Owned(slice) => slice.is_empty(), |
| 499 | BeefData::Interned(slice) => slice.is_empty(), |
| 500 | } |
| 501 | } |
| 502 | |
| 503 | /// Returns a reference to the underlying slice. |
| 504 | /// |