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 πŸ”’
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 πŸ”’