pub trait MemberVisitor<'a, F, R, T>{
// 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§
Sourcefn 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,
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 theMember
itself.op
is anOperatorClass
with a target type matching theMember
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.