Expand description
HTML formatting module
This module contains a large number of fmt::Display
implementations for
various types in rustdoc::clean
. These implementations all currently
assume that HTML output is desired, although it may be possible to redesign
them in the future to instead emit any format desired.
Structs
Buffer 🔒
Enums
Traits
Print 🔒
Functions
anchor 🔒
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 🔒
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.Used to render a
clean::Path
.tybounds 🔒
Helper to render type parameters
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.