Converts a CsskitAtomSet representing a vendor name to VendorPrefixes.
(self)
| 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> { |