1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
//! Types for structured (`(Element)`-annotated) message output.
//!
//! A message that uses `(Element)` markers is generated as a struct whose
//! fields are the resolved text segments and the element slots, in render
//! order. The generated accessor builds that struct from the [`Segment`]s
//! returned by [`L10nBundle::msg_segments`](crate::prelude::L10nBundle::msg_segments).
/// One resolved piece of a structured message.
///
/// [`L10nBundle::msg_segments`](crate::prelude::L10nBundle::msg_segments)
/// returns these in render order, alternating `Text, Element, Text, …`.
/// A variable `(Element)` slot in a generated structured-message struct.
///
/// It carries no data: the field exists only to mark — in render order — the
/// position where the consuming app injects its own UI element.
;