pub struct OutputLine {
pub text: String,
pub tags: Vec<String>,
pub block_id: BlockId,
pub source: Option<SourceLocation>,
pub element: Element,
}Expand description
The runtime types that appear in bevy-brink’s own public signatures,
re-exported so consumers can name them without depending on brink-runtime:
FlowInstance, Program,
Choice, Step’s
return, RuntimeError’s error,
FallbackHandler for the “no bindings” advance path, the scoped
story-state types a host needs to build a policy and a per-step routing
view (see docs/scoped-flow-state-spec.md): WorldPolicy, Scope,
PolicyError, and ContextView (usually built via
flow_context_view instead of by hand) — and the per-entity durability
types produced/consumed by BrinkGlobals::save_state/load_state and
save_flow_state/load_flow_state (F6.3, see the globals module’s
“Save/load” docs): SaveState and LoadReport.
World is deliberately absent here — it collides with bevy::prelude::World
under a glob import, so it is re-exported under the alias BrinkWorld.
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 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ConditionalSend for Twhere
T: Send,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSend for T
impl<T> DowncastSend for T
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.