Module rustdoc::html::render::print_item
source · Macros§
- item_template πGenerates a Rinja template struct for rendering items with common methods.
- Implement common methods for item template structs generated by
item_template!()
.
Structs§
- ImplString π
- ItemVars π
- PathComponent π
Constants§
- ITEM_TABLE_CLOSE π
- ITEM_TABLE_OPEN π
- ITEM_TABLE_ROW_CLOSE π
- ITEM_TABLE_ROW_OPEN π
Traits§
- ItemTemplate π
Functions§
- bounds π
- compare_names πCompare two strings treating multi-digit numbers as single units (i.e. natural sort order).
- 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_opaque_ty π
- 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 π
- Calls
print_where_clause
and returnstrue
if awhere
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
- 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 integerrepr
. - toggle_close π
- toggle_open π
- wrap_item π