Skip to main content

Module spec

Module spec 

Source
Expand description

Declaration table mapping tag names to their property specs.

This is the single source of truth for every safety tag rapx understands: its PropertyKind, the argument shapes it accepts (for variable-arity tags there is more than one form), its default ContractKind, and its rendering template.

PropertyKind orthogonalisation lives on PropertyKind in types.rs.

Some tags are declared but not fully supported: Unwrap, Pinned, Opened and Unreachable are parsed but the checker returns Unknown; NonVolatile is assumed satisfied (the VM does not model volatile access).

Re-exportsยง

use ArgKind::Expr; ๐Ÿ”’
use ArgKind::Ident; ๐Ÿ”’
use ArgKind::Target; ๐Ÿ”’
use ArgKind::Ty; ๐Ÿ”’
use super::*; ๐Ÿ”’

Structsยง

PropertySpec ๐Ÿ”’

Enumsยง

ArgKind ๐Ÿ”’

Staticsยง

SPECS ๐Ÿ”’

Functionsยง

find_spec ๐Ÿ”’
kind_meaning ๐Ÿ”’
The canonical meaning template for a property kind (the first tag that maps to kind). Argument-dependent kinds override this at render time.
ps ๐Ÿ”’
tag_name_for_kind ๐Ÿ”’
The first tag name that maps to kind (the inverse of find_spec).