Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

A special style comment exists, the Documentation Comments. These special comments are used to write documentation that will be published on crates.io site alongside the publication of the package. They start with /// or //!.

The /// is used to document the item that comes after the comments:

The //! is used to document the item inside which the comments is written. It is usually used to document a crate, at the start of a file:

To learn more about crates documentation, see Making Useful Documentation Comments.