Module print_item

Source

Macros§

item_template 🔒
Generates a Rinja template struct for rendering items with common methods.
item_template_methods 🔒
Implement common methods for item template structs generated by item_template!().

Structs§

ImplString 🔒
ItemVars 🔒
PathComponent 🔒

Constants§

ITEM_TABLE_CLOSE 🔒
ITEM_TABLE_OPEN 🔒
REEXPORTS_TABLE_OPEN 🔒

Traits§

ItemTemplate 🔒

Functions§

bounds 🔒
compare_names 🔒
Compare two strings treating multi-digit numbers as single units (i.e. natural sort order).
display_c_like_variant 🔒
document_non_exhaustive 🔒
document_non_exhaustive_header 🔒
extra_info_tags 🔒
Render the stability, deprecation and portability tags that are displayed in the item’s summary at the module level.
full_path 🔒
item_constant 🔒
item_enum 🔒
item_fields 🔒
item_foreign_type 🔒
item_function 🔒
item_keyword 🔒
item_macro 🔒
item_module 🔒
item_path 🔒
item_primitive 🔒
item_proc_macro 🔒
item_static 🔒
item_struct 🔒
item_trait 🔒
item_trait_alias 🔒
item_type_alias 🔒
item_union 🔒
item_variants 🔒
pluralize 🔒
print_item 🔒
print_tuple_struct_fields 🔒
print_where_clause_and_check 🔒
Calls print_where_clause and returns true if a where clause was generated.
render_enum_fields 🔒
render_implementor 🔒
render_struct 🔒
render_struct_fields 🔒
render_union 🔒
should_hide_fields 🔒
For large structs, enums, unions, etc, determine whether to hide their fields
should_show_enum_discriminant 🔒
It’ll return false if any variant is not a C-like variant. Otherwise it’ll return true if at least one of them has an explicit discriminant or if the enum has #[repr(C)] or an integer repr.
toggle_close 🔒
toggle_open 🔒
wrap_item 🔒