pub enum BodyItem {
Import(Import),
Property(Property),
CustomProperty(CustomProperty),
Comment(Comment),
ARule(AtRule),
}
Expand description
Something that may exist inside a rule.
Variants§
Import(Import)
An @import
statement with a name and args.
Property(Property)
A property declaration with a name and a value.
CustomProperty(CustomProperty)
A custom property declaration with a name and a value.
Comment(Comment)
A comment
ARule(AtRule)
Empty at-rules are allowed in a rule body.
Trait Implementations§
source§impl From<BodyItem> for AtRuleBodyItem
impl From<BodyItem> for AtRuleBodyItem
source§impl From<CustomProperty> for BodyItem
impl From<CustomProperty> for BodyItem
source§fn from(property: CustomProperty) -> BodyItem
fn from(property: CustomProperty) -> BodyItem
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for BodyItem
impl Send for BodyItem
impl Sync for BodyItem
impl Unpin for BodyItem
impl !UnwindSafe for BodyItem
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more