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

Class Declaration

crates/css_parse/src/syntax/property.rs:34–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32#[derive(ToSpan, ToCursors, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
33#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
34pub struct Declaration<T: DeclarationValue> {
35 pub name: T![Ident],
36 pub colon: T![:],
37 pub value: StyleValue<'a>,
38 pub important: Option<BangImportant>,
39 pub semicolon: Option<T![;]>,
40}
41
42impl<'a> Peek<'a> for Property<'a> {
43 fn peek(p: &Parser<'a>, c: Cursor) -> bool {

Callers 1

parseMethod · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected