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

Method parse

crates/css_parse/src/bump_box.rs:125–131  ·  view source on GitHub ↗
(p: &mut Parser<'a, I>)

Source from the content-addressed store, hash-verified

123
124impl<'a, T: Parse<'a>> Parse<'a> for BumpBox<'a, T> {
125 fn parse<I>(p: &mut Parser<'a, I>) -> crate::Result<Self>
126 where
127 I: Iterator<Item = Cursor> + Clone,
128 {
129 let value = T::parse(p)?;
130 Ok(BumpBox::new_in(p.bump(), value))
131 }
132}
133
134#[cfg(feature = "serde")]

Callers

nothing calls this directly

Calls 2

parseFunction · 0.50
bumpMethod · 0.45

Tested by

no test coverage detected