Skip to main content

Module annotations

Module annotations 

Source

Functionsยง

emit_deprecated
Emit @deprecated as #[deprecated(...)].
emit_doc
Emit @doc as /// doc comments.
emit_field_annotations
Emit field-level annotations.
emit_non_exhaustive
Emit @non_exhaustive as #[non_exhaustive].
emit_protocol_annotations
Emit protocol-level annotations (@revision).
emit_since
Emit @since as a doc comment.
emit_tombstones
emit_type_annotations
Emit all type-level annotations in standard order.