Skip to main content

annotation_to_string

Function annotation_to_string 

Source
pub fn annotation_to_string(ann: &Annotation) -> String
Expand description

Render a storage annotation (v0.85; ADR 0111): @name, or @name(arg, …) where each argument is an optional label: then the value expression. Render a storage annotation as a single source-syntax token: @indexed(by: id), @bounded(10000), @ttl(5.minutes), or a bare @retain. Public so the LSP’s agent-state hover (ADR 0161) can render a store field’s annotations without re-deriving them.