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§
- Buffer π
- Indent π
- WriteCounter π
Enums§
Traits§
- Print π
- PrintWithSpace π
Functions§
- anchor π
- comma_sep π
- display_fn π
- fmt_type π
- 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
andstd::vec::Vec
will both need../iter/trait.Iterator.html
to get at the iterator trait. - href_with_root_path π
- link_tooltip π
- make_href π
- primitive_link π
- print_abi_with_space π
- print_default_space π
- print_generic_bounds π
- 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.
- resolved_path πUsed to render a
clean::Path
. - to_module_fqp π
- tybounds π
- url_parts π
- This function is the same as print_with_space, except that it renders no links. Itβs used for macrosβ rendered source view, which is syntax highlighted and cannot have any HTML in it.