Silentdoer

导航

2022年10月9日 #

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 阅读(280) 评论(0) 推荐(0) 编辑