Module format

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ยง

HrefInfo ๐Ÿ”’
Type representing information of an href attribute.
Indent ๐Ÿ”’
WriteCounter ๐Ÿ”’

Enumsยง

Ending ๐Ÿ”’
HrefError ๐Ÿ”’

Traitsยง

PrintWithSpace ๐Ÿ”’

Functionsยง

fmt_type ๐Ÿ”’
full_print_fn_decl ๐Ÿ”’
header_len: The length of the function header and name. In other words, the number of characters in the function declaration up to but not including the parentheses. This is expected to go into a <pre>/code-header block, so indentation and newlines are preserved.indent: The number of spaces to indent each successive line with, if line-wrapping is necessary.
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 ๐Ÿ”’
is_unnamable ๐Ÿ”’
Checks if the given defid refers to an item that is unnamable, such as one defined in a const block.
link_tooltip ๐Ÿ”’
make_href ๐Ÿ”’
primitive_link ๐Ÿ”’
primitive_link_fragment ๐Ÿ”’
print_abi_with_space ๐Ÿ”’
print_anchor ๐Ÿ”’
print_assoc_item_constraint ๐Ÿ”’
print_constant_kind ๐Ÿ”’
print_constness_with_space ๐Ÿ”’
print_default_space ๐Ÿ”’
print_fn_decl ๐Ÿ”’
print_generic_arg ๐Ÿ”’
print_generic_args ๐Ÿ”’
print_generic_bound ๐Ÿ”’
print_generic_bounds ๐Ÿ”’
print_generic_param_def ๐Ÿ”’
print_generics ๐Ÿ”’
print_higher_ranked_params_with_space ๐Ÿ”’
print_impl ๐Ÿ”’
print_import ๐Ÿ”’
print_import_source ๐Ÿ”’
print_lifetime ๐Ÿ”’
print_parameter ๐Ÿ”’
print_params ๐Ÿ”’
print_path ๐Ÿ”’
print_poly_trait ๐Ÿ”’
print_qpath_data ๐Ÿ”’
print_term ๐Ÿ”’
print_tybounds ๐Ÿ”’
print_type ๐Ÿ”’
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 ๐Ÿ”’
url_parts ๐Ÿ”’
visibility_print_with_space ๐Ÿ”’