pub struct Rule<'a> {
pub selector: String,
pub selectors: Option<Vec<String>>,
pub nodes: Option<Vec<Rc<RefCell<Node<'a>>>>>,
pub parent: Option<Weak<Node<'a>>>,
pub source: Option<Source<'a>>,
pub raws: RuleRaws,
}Fieldsยง
ยงselector: StringSelector or selectors of the rule.
selectors: Option<Vec<String>>Selectors of the rule represented as an array of strings.
nodes: Option<Vec<Rc<RefCell<Node<'a>>>>>An array containing the nodeโs children.
parent: Option<Weak<Node<'a>>>The nodeโs parent node.
source: Option<Source<'a>>The input source of the node. The property is used in source map generation.
raws: RuleRawsTrait Implementationsยง
Sourceยงimpl<'de, 'a> Deserialize<'de> for Rule<'a>
impl<'de, 'a> Deserialize<'de> for Rule<'a>
Sourceยงfn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementationsยง
impl<'a> Freeze for Rule<'a>
impl<'a> !RefUnwindSafe for Rule<'a>
impl<'a> !Send for Rule<'a>
impl<'a> !Sync for Rule<'a>
impl<'a> Unpin for Rule<'a>
impl<'a> !UnwindSafe for Rule<'a>
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