Rust实现简单的IOC容器
摘要:
use std::{any::{Any, TypeId}, collections::HashMap}; use once_cell::sync::Lazy; use std::sync::Mutex; static IOC: Lazy<Mutex<HashMap<TypeId, Box<(dyn 阅读全文
posted @ 2022-10-09 15:54 Silentdoer 阅读(343) 评论(0) 推荐(0) 编辑