pub enum NodeSelector {
Any,
Kind(ExprNodeKind),
Name(String),
Tag(String),
}Expand description
Predicate selecting expression nodes for a NodeStyleRule.
Variants§
Any
Select every node.
Kind(ExprNodeKind)
Select nodes in a category.
Name(String)
Select nodes with a matching metadata or source name.
Tag(String)
Select nodes carrying a metadata tag.
Trait Implementations§
Source§impl Clone for NodeSelector
impl Clone for NodeSelector
Source§fn clone(&self) -> NodeSelector
fn clone(&self) -> NodeSelector
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for NodeSelector
impl Debug for NodeSelector
impl Eq for NodeSelector
Source§impl PartialEq for NodeSelector
impl PartialEq for NodeSelector
impl StructuralPartialEq for NodeSelector
Auto Trait Implementations§
impl Freeze for NodeSelector
impl RefUnwindSafe for NodeSelector
impl Send for NodeSelector
impl Sync for NodeSelector
impl Unpin for NodeSelector
impl UnsafeUnpin for NodeSelector
impl UnwindSafe for NodeSelector
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