Trait MemberVisitor

Source
pub trait MemberVisitor<'a, F, R, T>
where F: Member<'a, R, Value = T> + Clone,
{ // Required method fn visit_operator<O>(&mut self, name: &str, f: &F, op: O) where O: OperatorClass<<T as Operable>::Base>, <O as OperatorClass<<T as Operable>::Base>>::Instance: 'a, T: Operable; }
Available on crate feature filter only.
Expand description

Receive descriptions of the filters a Member supports.

A MemberVisitor can be passed to accept_visitor on a Member to receive a callback for each OperatorClass that Member supports.

Required Methods§

Source

fn visit_operator<O>(&mut self, name: &str, f: &F, op: O)
where O: OperatorClass<<T as Operable>::Base>, <O as OperatorClass<<T as Operable>::Base>>::Instance: 'a, T: Operable,

This is called by Member for each OperatorClass it supports. Here:

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

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§