pub struct GetInputVariablesVisitor {
pub input_variables: HashSet<InputVariable>,
pub expression_fns: HashSet<String>,
pub data_fns: HashSet<String>,
pub scale_fns: HashSet<String>,
}Expand description
Visitor to collect all unbound input variables in the expression
Fields§
§input_variables: HashSet<InputVariable>§expression_fns: HashSet<String>§data_fns: HashSet<String>§scale_fns: HashSet<String>Implementations§
Trait Implementations§
Source§impl Clone for GetInputVariablesVisitor
impl Clone for GetInputVariablesVisitor
Source§fn clone(&self) -> GetInputVariablesVisitor
fn clone(&self) -> GetInputVariablesVisitor
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 moreSource§impl Default for GetInputVariablesVisitor
impl Default for GetInputVariablesVisitor
Source§fn default() -> GetInputVariablesVisitor
fn default() -> GetInputVariablesVisitor
Returns the “default value” for a type. Read more
Source§impl ExpressionVisitor for GetInputVariablesVisitor
impl ExpressionVisitor for GetInputVariablesVisitor
Source§fn visit_called_identifier(&mut self, node: &Identifier, args: &[Expression])
fn visit_called_identifier(&mut self, node: &Identifier, args: &[Expression])
Collect data and scale identifiers. These show up as a literal string as the first argument to a Data or Scale callable.
fn visit_identifier(&mut self, node: &Identifier)
fn visit_expression(&mut self, _expression: &Expression)
fn visit_literal(&mut self, _node: &Literal)
fn visit_binary(&mut self, _node: &BinaryExpression)
fn visit_logical(&mut self, _node: &LogicalExpression)
fn visit_unary(&mut self, _node: &UnaryExpression)
fn visit_conditional(&mut self, _node: &ConditionalExpression)
fn visit_member(&mut self, _node: &MemberExpression)
fn visit_call(&mut self, _node: &CallExpression)
fn visit_array(&mut self, _node: &ArrayExpression)
fn visit_object(&mut self, _node: &ObjectExpression)
fn visit_object_key(&mut self, _node: &Key)
fn visit_static_member_identifier(&mut self, _node: &Identifier)
Auto Trait Implementations§
impl Freeze for GetInputVariablesVisitor
impl RefUnwindSafe for GetInputVariablesVisitor
impl Send for GetInputVariablesVisitor
impl Sync for GetInputVariablesVisitor
impl Unpin for GetInputVariablesVisitor
impl UnwindSafe for GetInputVariablesVisitor
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more