Module format

Source
Expand description

HTML formatting module

This module contains a large number of Display implementations for various types in rustdoc::clean.

These implementations all emit HTML. As an internal implementation detail, some of them support an alternate format that emits text, but that should not be used external to this module.

Structs§

Indent 🔒
WriteCounter 🔒

Enums§

Ending 🔒
HrefError 🔒

Traits§

PrintWithSpace 🔒

Functions§

anchor 🔒
fmt_type 🔒
generate_item_def_id_path 🔒
generate_macro_def_id_path 🔒
This function is to get the external macro path because they are not in the cache used in href_with_root_path.
href 🔒
href_relative_parts 🔒
Both paths should only be modules. This is because modules get their own directories; that is, std::vec and std::vec::Vec will both need ../iter/trait.Iterator.html to get at the iterator trait.
href_with_root_path 🔒
join_with_double_colon 🔒
link_tooltip 🔒
make_href 🔒
primitive_link 🔒
primitive_link_fragment 🔒
print_abi_with_space 🔒
print_constness_with_space 🔒
print_default_space 🔒
print_generic_bounds 🔒
print_higher_ranked_params_with_space 🔒
print_where_clause 🔒
The Generics from which to emit a where-clause.The number of spaces to indent each line with.Whether the where-clause needs to add a comma and newline after the last bound.
print_where_predicate 🔒
resolved_path 🔒
Used to render a clean::Path.
to_module_fqp 🔒
tybounds 🔒
url_parts 🔒
visibility_print_with_space 🔒
write_str 🔒