Trait code_gen::WithOptionalExpression
source · pub trait WithOptionalExpression {
// Required methods
fn expression(&self) -> Option<&Box<dyn Expression>>;
fn with_expression<E>(self, expression: E) -> Self
where E: 'static + Expression;
fn set_expression<E>(&mut self, expression: E)
where E: 'static + Expression;
}
Expand description
An element with an optional expression.
Required Methods§
sourcefn expression(&self) -> Option<&Box<dyn Expression>>
fn expression(&self) -> Option<&Box<dyn Expression>>
Gets the optional expression.
sourcefn with_expression<E>(self, expression: E) -> Selfwhere
E: 'static + Expression,
fn with_expression<E>(self, expression: E) -> Selfwhere
E: 'static + Expression,
Sets the expression.
sourcefn set_expression<E>(&mut self, expression: E)where
E: 'static + Expression,
fn set_expression<E>(&mut self, expression: E)where
E: 'static + Expression,
Sets the expression.
Object Safety§
This trait is not object safe.