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