intrepid_model

Trait InterpidRepo

Source
pub trait InterpidRepo: CacheRepo + EventRepo { }
Expand description

An intrepid repository combines the functionality of a cache and an event repo, and is automatically implemented for any type that implements both.

This lets you establish an interface that expects both types, and then use any type that implements both without having to specify both types every time.

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§

Source§

impl<T> InterpidRepo for T
where T: CacheRepo + EventRepo,