Skip to main content

Module header

Module header 

Source
Expand description

headers are sets of consecutive keywords and tokens, such as pub const unsafe fn foo and pub(crate) unsafe trait Bar.

This module contains general logic for formatting such headers, where they are always placed on a single line except when there are comments between parts of the header.

Structsยง

HeaderPart ๐Ÿ”’

Functionsยง

format_header ๐Ÿ”’