1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
#[derive(Debug)] enum DocType { XFlowStruct, } pub struct DocStore { docs: Vec<(String, DocType)>, } impl DocStore { pub fn new() -> DocStore { DocStore { docs: Vec::<(String, DocType)>::new() } } pub fn add(&self, doc: DocType) {} }