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

Method remaining_str

crates/css_lexer/src/private.rs:139–141  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

137 /// Return the remaining bytes as a &str (valid since source is UTF-8)
138 #[inline(always)]
139 fn remaining_str(&self) -> &'a str {
140 unsafe { std::str::from_utf8_unchecked(&self.bytes[self.pos..]) }
141 }
142
143 /// Return the remaining bytes slice
144 #[inline(always)]

Callers 3

consume_numeric_tokenMethod · 0.80
consume_hash_tokenMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected