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

Method any_field_can_start

crates/csskit_derives/src/attributes.rs:20–22  ·  view source on GitHub ↗

Any field can be the first token (unordered multi-field modes).

(self)

Source from the content-addressed store, hash-verified

18impl FieldParseMode {
19 /// Any field can be the first token (unordered multi-field modes).
20 pub fn any_field_can_start(self) -> bool {
21 matches!(self, Self::AllMustOccur | Self::OneMustOccur)
22 }
23}
24
25#[derive(Debug, Default, FromAttributes)]

Callers 1

deriveFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected