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ยง
- Href
Info ๐ - Type representing information of an
hrefattribute. - Indent ๐
- Write
Counter ๐
Enumsยง
Traitsยง
- Print
With ๐Space
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-headerblock, 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::vecandstd::vec::Vecwill both need../iter/trait.Iterator.htmlto 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