Module macro_tools::prelude
source · Expand description
Prelude to use essentials: use my_module::prelude::*.
Re-exports§
pub use attr::prelude::*;pub use attr_prop::prelude::*;pub use components::prelude::*;pub use container_kind::prelude::*;pub use ct::prelude::*;pub use derive::prelude::*;pub use diag::prelude::*;pub use drop::prelude::*;pub use equation::prelude::*;pub use generic_args::prelude::*;pub use generic_params::prelude::*;pub use item::prelude::*;pub use item_struct::prelude::*;pub use name::prelude::*;pub use kw::exposed::*;pub use phantom::prelude::*;pub use punctuated::prelude::*;pub use quantifier::prelude::*;pub use struct_like::prelude::*;pub use tokens::prelude::*;pub use typ::prelude::*;pub use iter::prelude::*;
Modules§
Macros§
- A type-macro that expands to the name of the Rust type representation of a given token.
- Parse a set of curly braces and expose their content to subsequent parsers.
- Parse a set of square brackets and expose their content to subsequent parsers.
- Define a type that supports parsing and printing a given identifier as if it were a keyword.
- Define a type that supports parsing and printing a multi-character symbol as if it were a punctuation token.
- Formatting macro for constructing
Idents. - Parse a set of parentheses and expose their content to subsequent parsers.
- Parse the input TokenStream of a macro, triggering a compile error if the tokens fail to parse.
- Quasi-quotation macro that accepts input like the
quote!macro but uses type inference to figure out a return type for those tokens. - This macro is
parse_quote!+quote_spanned!. - Quasi-quotation macro that accepts input like the
quote!macro but uses type inference to figure out a return type for those tokens. - This macro is
parse_quote!+quote_spanned!. - The whole point.
- The whole point.
- Same as
quote!, but applies a given span to all tokens originating within the macro invocation.
Traits§
- Convert it into canonical interval.
- Interval adapter. Interface to interval-like structures.
- Interval adapter. Interface to interval-like structures.
- A trait that can provide the
Spanof the complete contents of a syntax tree node.
Type Aliases§
- Input to a Syn parser function.