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§

source

fn expression(&self) -> Option<&Box<dyn Expression>>

Gets the optional expression.

source

fn with_expression<E>(self, expression: E) -> Self
where E: 'static + Expression,

Sets the expression.

source

fn set_expression<E>(&mut self, expression: E)
where E: 'static + Expression,

Sets the expression.

Object Safety§

This trait is not object safe.

Implementors§