10 lines
178 B
Rust
10 lines
178 B
Rust
use std::{
|
|
any::{Any, TypeId},
|
|
collections::HashMap,
|
|
};
|
|
|
|
#[derive(Default)]
|
|
pub struct Factory {
|
|
pub(crate) resources: HashMap<TypeId, Box<dyn Any + Send + Sync>>,
|
|
}
|