0.2.0 Preview 1 · Frozen documentation
AttributeRetention
Selects whether a frozen typed attribute remains runtime-reflectable.
Sn is under heavy development. Reference extracted from this release’s bundled standard library. Public API examples are not an exhaustive compatibility test. Read the matching release guide for tested workflows and limitations. Read the status →
Module std.meta
import std.meta;Public declaration contracts and authored examples. A page can document several related symbols. Implementation bodies are excluded.
AttributeRetention
pub enum AttributeRetentionSelects whether a frozen typed attribute remains runtime-reflectable.
Construction and compiler/tooling effects always occur during compilation. Runtime retention controls only emission of the immutable reflection record.
AttributeRetention.Runtime
Runtime;Retains the frozen application when reflection is enabled.
AttributeRetention.CompileTimeOnly
CompileTimeOnly;Omits the runtime record while preserving compile-time semantic metadata.
Documentation snapshot: October 24, 2026 About versions ↗