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

Method parse

crates/css_value_definition_parser/src/lib.rs:22–26  ·  view source on GitHub ↗
(input_raw: ParseStream)

Source from the content-addressed store, hash-verified

20pub struct StrWrapped<T: Parse>(pub T);
21impl<T: Parse> Parse for StrWrapped<T> {
22 fn parse(input_raw: ParseStream) -> Result<Self> {
23 Ok(Self(parse2::<T>(
24 input_raw.parse::<LitStr>()?.value().replace("'", "\"").replace("", "").parse::<TokenStream>()?,
25 )?))
26 }
27}
28
29#[derive(Debug, PartialEq, Clone)]

Callers

nothing calls this directly

Calls 15

ErrClass · 0.85
AutoOrEnum · 0.85
DefIdentClass · 0.85
NoneOrEnum · 0.85
CombinatorEnum · 0.85
replaceMethod · 0.80
optimizeMethod · 0.80
peek2Method · 0.80
as_charMethod · 0.80
valueMethod · 0.45
peekMethod · 0.45
is_emptyMethod · 0.45

Tested by

no test coverage detected