pub struct ConstructionRule {
pub element_name: String,
pub expr: Value,
pub source_file: Option<String>,
pub source_pos: Option<Position>,
}Expand description
Construction rule for DSSSL processing
Corresponds to OpenJade’s ElementRule + Rule + Action.
Stores the pattern (element name) and action (expression to evaluate).
Fields§
§element_name: StringElement name pattern (GI)
expr: ValueConstruction expression (returns sosofo when evaluated)
source_file: Option<String>Source position where this rule was defined (for error reporting)
source_pos: Option<Position>Trait Implementations§
Source§impl Clone for ConstructionRule
impl Clone for ConstructionRule
Source§fn clone(&self) -> ConstructionRule
fn clone(&self) -> ConstructionRule
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 ConstructionRule
impl !RefUnwindSafe for ConstructionRule
impl !Send for ConstructionRule
impl !Sync for ConstructionRule
impl Unpin for ConstructionRule
impl !UnwindSafe for ConstructionRule
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