pub trait MemberVisitor<F, R, T> where
    F: Member<R, Value = T> + Clone
{ fn visit_operator<O>(&mut self, name: &str, f: &F, op: O)
    where
        F: 'static,
        O: OperatorClass<<T as Operable>::Base> + 'static,
        <O as OperatorClass<<T as Operable>::Base>>::Instance: 'static,
        T: Operable
; }
Expand description

Something that can receive callbacks about the operators a member supports.

A MemberVisitor can be passed to Member::accept_visitor to receive a callback for each of the operator classes a given Member supports.

Required methods

This is called by Member for each of the operator classes it supports. Here:

  • name is the name of the operator in queries (e.g. “in”)
  • f is the calling Member itself.
  • op is an OperatorClass with a target type matching the Member.

Implementors