Trait Index

Source
pub trait Index<'t, In> {
    type Query<Out>
       where Self: 't,
             Out: 't;

    // Required methods
    fn insert(&mut self, op: &Insert<'_, In>);
    fn remove(&mut self, op: &Remove<'_, In>);
    fn query<Out>(&'t self, env: QueryEnv<'t, Out>) -> Self::Query<Out>;

    // Provided method
    fn update(&mut self, op: &Update<'_, In>) { ... }
}

Required Associated Types§

Source

type Query<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<Out>(&'t self, env: QueryEnv<'t, Out>) -> Self::Query<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§