Skip to main content

rdname_value

Function rdname_value 

Source
pub(crate) fn rdname_value(tags: &[String]) -> Option<&str>
Expand description

The topic named by the tag list’s own @rdname tag, if it has one.

Class generators default every method onto the class page (@rdname <Class>); a method-level /// @rdname other splits it onto its own page. Every emission path that injects the class default must consult this first so a user-supplied topic is honoured once, not duplicated by the default.