pub struct StyleRuleItem {
pub component: Ident,
pub variant: Option<Ident>,
pub targets: Vec<Ident>,
pub exempt: Vec<(Ident, String)>,
pub props: Vec<StyleProp>,
pub span: Span,
}Expand description
Component or Component.variant, with its properties.
Fields§
§component: Ident§variant: Option<Ident>§targets: Vec<Ident>#[target(macos, ios)]: the platforms the rule applies to; empty
for all.
exempt: Vec<(Ident, String)>#[exempt(gtk, "reason")]: platforms that keep their default for
what they cannot show.
props: Vec<StyleProp>§span: SpanTrait Implementations§
Source§impl Clone for StyleRuleItem
impl Clone for StyleRuleItem
Auto Trait Implementations§
impl !Send for StyleRuleItem
impl !Sync for StyleRuleItem
impl Freeze for StyleRuleItem
impl RefUnwindSafe for StyleRuleItem
impl Unpin for StyleRuleItem
impl UnsafeUnpin for StyleRuleItem
impl UnwindSafe for StyleRuleItem
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