Module syntax::ast_utilUnstable
[-] [+]
[src]
Structs
IdRange | |
IdVisitor | A visitor that applies its operation to all of the node IDs in a visitable thing. |
Constants
AS_PREC | Precedence of the |
Traits
IdVisitingOperation | |
PostExpansionMethod | Macro invocations are guaranteed not to occur after expansion is complete. Extracting fields of a method requires a dynamic check to make sure that it's not a macro invocation. This check is guaranteed to succeed, assuming that the invocations are indeed gone. |
Functions
binop_to_string | |
compute_id_range_for_fn_body | Computes the id range for a single fn body, ignoring nested items. |
compute_id_range_for_inlined_item | |
empty_generics | |
float_ty_to_string | |
ident_to_pat | |
ident_to_path | |
impl_pretty_name | Generate a "pretty" name for an |
int_ty_max | |
int_ty_to_string | Get a string representation of a signed int type, with its value. We want to avoid "45int" and "-3int" in favor of "45" and "-3" |
is_by_value_binop | Returns |
is_by_value_unop | Returns |
is_comparison_binop | |
is_local | |
is_path | |
is_shift_binop | |
is_symmetric_binop | Returns |
lazy_binop | |
lit_is_str | Returns true if this literal is a string and false otherwise. |
local_def | |
name_to_dummy_lifetime | |
operator_prec | Maps a binary operator to its precedence |
pat_is_ident | Returns true if the given pattern consists solely of an identifier and false otherwise. |
path_name_eq | |
path_name_i | |
path_to_ident | |
segments_name_eq | |
split_trait_methods | |
stmt_id | |
struct_def_is_tuple_like | Returns true if the given struct def is tuple-like; i.e. that its fields are unnamed. |
struct_field_visibility | |
trait_item_to_ty_method | extract a TypeMethod from a TraitItem. if the TraitItem is a default, pull out the useful fields to make a TypeMethod |
trait_method_to_ty_method | |
uint_ty_max | |
uint_ty_to_string | Get a string representation of an unsigned int type, with its value. We want to avoid "42u" in favor of "42us". "42uint" is right out. |
unop_to_string | |
visit_ids_for_inlined_item | |
walk_pat |