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

Method to_vendor_prefix

crates/csskit_ast/src/csskit_atom_set.rs:34–42  ·  view source on GitHub ↗

Converts a CsskitAtomSet representing a vendor name to VendorPrefixes.

(self)

Source from the content-addressed store, hash-verified

32
33 /// Converts a CsskitAtomSet representing a vendor name to VendorPrefixes.
34 pub fn to_vendor_prefix(self) -> Option<VendorPrefixes> {
35 match self {
36 Self::Webkit => Some(VendorPrefixes::WebKit),
37 Self::Moz => Some(VendorPrefixes::Moz),
38 Self::Ms => Some(VendorPrefixes::Ms),
39 Self::O => Some(VendorPrefixes::O),
40 _ => None,
41 }
42 }
43
44 /// Converts a CsskitAtomSet representing a property group name to PropertyGroup.
45 pub fn to_property_group(self) -> Option<PropertyGroup> {

Callers 1

vendor_prefixMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected