pub struct OutputLine {
pub text: String,
pub tags: Vec<String>,
pub block_id: BlockId,
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.
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
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OutputLine
impl Debug for OutputLine
impl Eq for OutputLine
Source§impl PartialEq for OutputLine
impl PartialEq for OutputLine
impl StructuralPartialEq for OutputLine
Auto Trait Implementations§
impl Freeze for OutputLine
impl RefUnwindSafe for OutputLine
impl Send for OutputLine
impl Sync for OutputLine
impl Unpin for OutputLine
impl UnsafeUnpin for OutputLine
impl UnwindSafe for OutputLine
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more