pub struct OutputLine {
pub text: String,
pub tags: Vec<String>,
pub block_id: BlockId,
pub source: Option<SourceLocation>,
pub element: Element,
}Expand description
One line of story content, carried inside Step::Line.
.text stays a plain field rather than a Vec<Part> decomposition —
that structured-markup surface (docs/prose-dialect-spec.md §7/§9.1’s
Part::Span) is still out of scope (issue #2108 populated
Element::data, the other half of the spec’s element/markup layer, but
deliberately not this one — see this issue’s own tracked follow-up).
Fields§
§text: StringThe line’s text content.
Tags associated with this line.
block_id: BlockIdThe run of adjacent content this line belongs to. See BlockId.
source: Option<SourceLocation>Where this line came from in the author’s source (W7/#3300
transcript provenance): the first contributing line-table entry’s
source_location — file plus UTF-8 byte range as the compiler
consumed it. None when no entry contributed one (pure
interpolation, or a program compiled without locations).
element: ElementThis line’s classification. See Element’s own doc for what’s
populated today and what isn’t.
Trait Implementations§
Source§impl Clone for OutputLine
impl Clone for OutputLine
Source§fn clone(&self) -> OutputLine
fn clone(&self) -> OutputLine
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more