MCPcopy Create free account
hub / github.com/hashintel/hash / is_empty

Method is_empty

libs/@local/hashql/core/src/intern/beef.rs:496–501  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

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 ///

Callers 1

intern_sliceMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected