Module rustdoc::html::format [] [src]

🔬 This is a nightly-only experimental API. (rustdoc)

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

AbiSpace [
Experimental
]
CommaSep [
Experimental
]

Wrapper struct for emitting a comma-separated list of items

ConstnessSpace [
Experimental
]

Similarly to VisSpace, this structure is used to render a function constness with a space after it.

HRef [
Experimental
]
Method [
Experimental
]

Wrapper struct for properly emitting a method declaration.

MutableSpace [
Experimental
]

Similar to VisSpace, but used for mutability

RawMutableSpace [
Experimental
]

Similar to VisSpace, but used for mutability

TyParamBounds [
Experimental
]

Wrapper struct for emitting type parameter bounds.

UnsafetySpace [
Experimental
]

Similarly to VisSpace, this structure is used to render a function style with a space after it.

VisSpace [
Experimental
]

Helper to render an optional visibility with a space after it (if the visibility is preset)

WhereClause [
Experimental
]

Wrapper struct for emitting a where clause from Generics.

Functions

fmt_impl_for_trait_page [
Experimental
]
href [
Experimental
]