DecorationInfo in rustdoc::html::highlight - Rust (original) (raw)

Struct DecorationInfo

Source

pub(crate) struct DecorationInfo(pub(crate) FxIndexMap<&'static str, Vec<(u32, u32)>>);

Expand description

Decorations are represented as a map from CSS class to vector of character ranges. Each range will be wrapped in a span with that class.

§

§

§

§

§

§

Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.

Size: 56 bytes