Template:Alloc

From Rust Community Wiki
Revision as of 08:14, 4 June 2020 by Koxiaet (talk | contribs) (Made parameters required, added example)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This is a wrapper around Template:Doc and exists to shorten {{Doc|alloc/foo|Bar}} to just {{alloc|foo|Bar}}.

Links to documentation for the 'alloc' crate.

Template parameters

ParameterDescriptionTypeStatus
Relative URL1

The URL to the item without a slash at the start

Example
boxed/struct.Box.html
Stringrequired
Displayed text2

The text to display on the link

Stringrequired