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

Method peek

crates/css_ast/src/units/float.rs:29–34  ·  view source on GitHub ↗
(p: &Parser<'a, I>, c: Cursor)

Source from the content-addressed store, hash-verified

27
28 #[inline(always)]
29 fn peek<I>(p: &Parser<'a, I>, c: Cursor) -> bool
30 where
31 I: Iterator<Item = Cursor> + Clone,
32 {
33 <T![Number]>::peek(p, c) && c.token().is_float()
34 }
35}
36
37impl<'a> Parse<'a> for CSSFloat {

Callers

nothing calls this directly

Calls 2

is_floatMethod · 0.45
tokenMethod · 0.45

Tested by

no test coverage detected