Skip to main content

Module node_ext

Module node_ext 

Source
Expand description

Various extension methods to ast Nodes, which are hard to code-generate. Extensions for various expressions live in a sibling expr_extensions module.

These methods should only do simple, shallow tasks related to the syntax of the node itself.

Structs§

SlicePatComponents
TokenTreeChildren
An iterator over the elements in an ast::TokenTree.

Enums§

AttrKind
CfgAtomKey
FieldKind
Macro
NameLike
NameOrNameRef
PathSegmentKind
SelfParamKind
StructKind
TypeBoundKind
TypeOrConstParam
VisibilityKind

Functions§

into_comma 🔒
text_of_first_token 🔒