Trait Index

Source
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§

Source

type Query<'t, Out> where Self: 't, Out: 't

Required Methods§

Source

fn insert(&mut self, op: &Insert<'_, In>)

Source

fn remove(&mut self, op: &Remove<'_, In>)

Source

fn query<'t, Out: 't>(&'t self, env: QueryEnv<'t, Out>) -> Self::Query<'t, Out>

Provided Methods§

Source

fn update(&mut self, op: &Update<'_, In>)

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§