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

Method end_offset

crates/css_lexer/src/cursor.rs:32–37  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

30
31 #[inline(always)]
32 pub fn end_offset(&self) -> SourceOffset {
33 if self.offset() == SourceOffset::DUMMY {
34 return self.offset();
35 }
36 SourceOffset(self.offset().0 + self.len())
37 }
38
39 #[inline(always)]
40 pub const fn is_empty(&self) -> bool {

Callers 4

spanMethod · 0.80
str_sliceMethod · 0.80
flushMethod · 0.80
appendMethod · 0.80

Calls 3

SourceOffsetClass · 0.85
offsetMethod · 0.45
lenMethod · 0.45

Tested by

no test coverage detected