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

Method to_property_kind

crates/csskit_ast/src/csskit_atom_set.rs:115–120  ·  view source on GitHub ↗

Converts a CsskitAtomSet representing an attribute name to PropertyKind.

(self)

Source from the content-addressed store, hash-verified

113
114 /// Converts a CsskitAtomSet representing an attribute name to PropertyKind.
115 pub fn to_property_kind(self) -> Option<PropertyKind> {
116 match self {
117 Self::Name => Some(PropertyKind::Name),
118 _ => None,
119 }
120 }
121}

Callers 3

property_kindMethod · 0.80
self_metadataMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected