Skip to main content

Module annotated_string

Module annotated_string 

Source

Structs§

AnnotatedString
The basic data structure of text with multiple styles.
Builder
A builder to construct AnnotatedString.
RangeStyle
A style applied to a range of an AnnotatedString.
RenderString
What rendering reads from an AnnotatedString: content, styles, and link identity — never the link handlers, which live UI-side only.
StringAnnotation
Mirrors Jetpack Compose’s AnnotatedString.Range<String> — a tag+value annotation covering a byte range.

Enums§

LinkAnnotation
Mirrors Jetpack Compose’s LinkAnnotation sealed class.
LinkKey
Link identity without the link behavior: what rendering may know about a LinkAnnotation. URL links keep their URL, clickable links keep their tag — the handler stays UI-side.

Functions§

shared_plain_annotated_string
Returns the shared AnnotatedString for a plain, style-free string, reusing the copy made on an earlier frame when the content matches.