Struct ast_grep_core::ops::Not

source ·
pub struct Not<L: Language, M: Matcher<L>> { /* private fields */ }

Implementations§

Trait Implementations§

Returns the node why the input is matched or None if not matched. The return value is usually input node itself, but it can be different node. For example Has matcher can return the child or descendant node.
Returns a bitset for all possible target node kind ids. Returns None if the matcher needs to try against all node kind.
get_match_len will skip trailing anonymous child node to exclude punctuation.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.