pub struct PatternBody {
pub stages: Vec<StageAst>,
pub negations: Vec<NegationAst>,
pub temporals: Vec<TemporalAst>,
pub metadata: Vec<(String, String)>,
pub deadline: Option<f64>,
pub unordered_groups: Vec<Vec<usize>>,
pub private: bool,
}Expand description
The interior of a pattern — stages, negations, and temporal constraints,
without the pattern name { } wrapper.
Used by crate::parser::Parser::parse_pattern_body() for composable
parsing — downstream DSLs can parse a pattern body embedded in their own
block syntax.
Fields§
§stages: Vec<StageAst>§negations: Vec<NegationAst>§temporals: Vec<TemporalAst>§metadata: Vec<(String, String)>§deadline: Option<f64>§unordered_groups: Vec<Vec<usize>>§private: boolTrait Implementations§
Source§impl Clone for PatternBody
impl Clone for PatternBody
Source§fn clone(&self) -> PatternBody
fn clone(&self) -> PatternBody
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 PatternBody
impl RefUnwindSafe for PatternBody
impl Send for PatternBody
impl Sync for PatternBody
impl Unpin for PatternBody
impl UnsafeUnpin for PatternBody
impl UnwindSafe for PatternBody
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