pub struct LineVariant {
pub id: String,
pub speaker: Option<String>,
pub text: Vec<TextSegment>,
pub cond: Option<Arc<Expr>>,
pub once: bool,
pub tags: Vec<String>,
}Expand description
A line variant inside a => line-group.
Fields§
§id: StringStable id.
speaker: Option<String>Optional speaker.
text: Vec<TextSegment>Pre-parsed text segments (literals and {expr} fragments).
cond: Option<Arc<Expr>>Optional guard; None = always considered with saliency.
once: boolWhether this variant is a once-variant.
Trailing tags.
Trait Implementations§
Source§impl Clone for LineVariant
impl Clone for LineVariant
Source§fn clone(&self) -> LineVariant
fn clone(&self) -> LineVariant
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for LineVariant
impl RefUnwindSafe for LineVariant
impl Send for LineVariant
impl Sync for LineVariant
impl Unpin for LineVariant
impl UnsafeUnpin for LineVariant
impl UnwindSafe for LineVariant
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