MCPcopy Create free account
hub / github.com/csskit/csskit / is_empty

Method is_empty

crates/css_lexer/src/token.rs:686–688  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

684 /// The only token with an empty length is EOF, but this method is available for symmetry with `len()`.
685 #[inline]
686 pub const fn is_empty(&self) -> bool {
687 self.kind_bits() == Kind::Eof as u8
688 }
689
690 /// Returns the amount of characters (utf-8 code points) this Token represents in the underlying source text.
691 #[inline]

Callers

nothing calls this directly

Calls 1

kind_bitsMethod · 0.80

Tested by

no test coverage detected