mirror of
https://github.com/salsa-rs/salsa.git
synced 2025-02-07 04:55:08 +00:00
15 lines
322 B
Rust
15 lines
322 B
Rust
|
use crate::{
|
||
|
storage::{HasJar, JarFromJars},
|
||
|
Database, DbWithJar,
|
||
|
};
|
||
|
|
||
|
use super::routes::Ingredients;
|
||
|
|
||
|
pub trait Jar<'db>: Sized {
|
||
|
type DynDb: ?Sized + HasJar<Self> + Database + 'db;
|
||
|
|
||
|
fn create_jar<DB>(ingredients: &mut Ingredients<DB>) -> Self
|
||
|
where
|
||
|
DB: JarFromJars<Self> + DbWithJar<Self>;
|
||
|
}
|