pub trait Index<In> {
type Query<'t, Out>
where Self: 't,
Out: 't;
// Required methods
fn insert(&mut self, op: &Insert<'_, In>);
fn remove(&mut self, op: &Remove<'_, In>);
fn query<'t, Out: 't>(
&'t self,
env: QueryEnv<'t, Out>,
) -> Self::Query<'t, Out>;
// Provided method
fn update(&mut self, op: &Update<'_, In>) { ... }
}
Required Associated Types§
Required Methods§
fn insert(&mut self, op: &Insert<'_, In>)
fn remove(&mut self, op: &Remove<'_, In>)
fn query<'t, Out: 't>(&'t self, env: QueryEnv<'t, Out>) -> Self::Query<'t, Out>
Provided Methods§
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.