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

Method len

crates/css_lexer/src/span.rs:65–68  ·  view source on GitHub ↗

Returns the length of the [Span].

(&self)

Source from the content-addressed store, hash-verified

63
64 /// Returns the length of the [Span].
65 pub fn len(&self) -> u32 {
66 debug_assert!(self.start <= self.end);
67 self.end.0 - self.start.0
68 }
69
70 /// Given a string `source`, establish the line number and column number that this span would reside in.
71 pub fn line_and_column(self, source: &'_ str) -> (u32, u32) {

Callers 15

generateFunction · 0.45
is_emptyMethod · 0.45
popularFunction · 0.45
unexpected_at_ruleMethod · 0.45
unexpected_functionMethod · 0.45
parseMethod · 0.45
to_chromashiftMethod · 0.45
self_metadataMethod · 0.45

Calls

no outgoing calls

Tested by 3

is_emptyMethod · 0.36
parse_spec_propertiesFunction · 0.36