pub(crate) trait Storage {
// Required methods
fn event_info(&self, id: usize) -> Option<&EventInfo>;
fn for_each<'a, F>(&'a self, f: F)
where F: FnMut(&'a EventInfo);
}Expand description
An interface for retrieving the EventInfo for a particular eventId.
Required Methods§
Sourcefn event_info(&self, id: usize) -> Option<&EventInfo>
fn event_info(&self, id: usize) -> Option<&EventInfo>
Gets the EventInfo for id if it exists.
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.