Attribute Macro doc_item::since

source · []
#[since]
Expand description

Adds a minimal version to an item.

This is meant to indicate that an item has been available since a certain version. The value is placed to the right of the item’s definition in light text.

The value is styled the same as the since values used in the standard library’s documentation.

#[doc_item::since(content="1.2.0")]
pub fn foo() {}