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

Method is_empty

crates/css_lexer/src/span.rs:60–62  ·  view source on GitHub ↗

Checks if the [Span] has no length.

(&self)

Source from the content-addressed store, hash-verified

58
59 /// Checks if the [Span] has no length.
60 pub const fn is_empty(&self) -> bool {
61 self.start.0 == self.end.0
62 }
63
64 /// Returns the length of the [Span].
65 pub fn len(&self) -> u32 {

Callers 10

installed_versionFunction · 0.45
from_stringMethod · 0.45
from_string_as_rangeMethod · 0.45
supports_browserslistMethod · 0.45
is_number_startMethod · 0.45
popular_snapshotsFunction · 0.45
parseMethod · 0.45

Calls

no outgoing calls

Tested by 1

popular_snapshotsFunction · 0.36