MCPcopy Create free account
hub / github.com/Stranger6667/css-inline / exhaust

Function exhaust

css-inline/src/parser.rs:18–22  ·  view source on GitHub ↗
(input: &mut cssparser::Parser<'i, '_>)

Source from the content-addressed store, hash-verified

16pub(crate) type QualifiedRule<'i> = (&'i str, (usize, usize));
17
18fn exhaust<'i>(input: &mut cssparser::Parser<'i, '_>) -> &'i str {
19 let start = input.position();
20 while input.next().is_ok() {}
21 input.slice_from(start)
22}
23
24/// Parser for qualified rules - a prelude + a simple {} block.
25///

Callers 3

parse_preludeMethod · 0.85
parse_valueMethod · 0.85
parse_blockMethod · 0.85

Calls 1

nextMethod · 0.80

Tested by

no test coverage detected