salsa/components/salsa-2022/src/jar.rs
Niko Matsakis 9229b1a23a rename Ingredients to Routes
The old name makes it sound like it contains the
actual ingredients, but really it just contains
the routes we use to find them at runtime.
2022-08-10 00:42:32 -04:00

14 lines
307 B
Rust

use crate::{
storage::{HasJar, JarFromJars},
Database, DbWithJar,
};
use super::routes::Routes;
pub trait Jar<'db>: Sized {
type DynDb: ?Sized + HasJar<Self> + Database + 'db;
fn create_jar<DB>(routes: &mut Routes<DB>) -> Self
where
DB: JarFromJars<Self> + DbWithJar<Self>;
}