This commit is contained in:
aozhiwei 2022-10-10 23:47:06 +08:00
parent 8990640c84
commit ddfcba0027
2 changed files with 30 additions and 0 deletions

View File

@ -8,6 +8,7 @@ use r9;
mod test;
mod mt;
mod metawrap;
mod metamgr;
#[derive(Clone)]
pub enum MessagesUnion
@ -71,6 +72,10 @@ macro_rules! getMeta {
}
}
struct TestA {
}
fn main() {
let mut metamgr = MetaMgr::new();
let p = metawrap::MtwAliKeyConf{
@ -95,4 +100,14 @@ fn main() {
}
}
{
let mut testA = TestA{};
let mut a = RefCell::new(crate::mt::AliKeyConf::new());
{
let p = RefCell::new(crate::mt::AliKeyConf::new());
a = p;
let testB = TestA{};
testA = testB;
}
}
}

View File

@ -0,0 +1,15 @@
use std::any::Any;
use std::collections::HashMap;
pub struct MetaClass {
file_name: String,
idx: i32,
prim_key: String,
raw_list: Vec<Box<dyn Any>>,
id_hash: HashMap<i64, Box<dyn Any>>,
name_hash: HashMap<String, Box<dyn Any>>,
}
pub struct MetaMgr {
}