Skip to main content

Exceptable

Trait Exceptable 

Source
pub trait Exceptable {
    // Provided methods
    fn rule_exceptions(&self) -> HashSet<String> { ... }
    fn is_rule_excepted(&self, _id: &str) -> bool { ... }
}
Expand description

An extension trait for syntax nodes.

Provided Methods§

Source

fn rule_exceptions(&self) -> HashSet<String>

Gets the AST node’s rule exceptions set.

The set is the comma-delimited list of rule identifiers that follows a #@ except: comment.

Source

fn is_rule_excepted(&self, _id: &str) -> bool

Determines if a given rule id is excepted for the syntax node.

Implementations on Foreign Types§

Source§

impl Exceptable for SyntaxNode

Implementors§