pub fn all_resources_by_inst(&self, inst: &StructInstantiation) -> Vec<BaseValue> {
        let mut resources = vec![];
        for v1 in self.saved_memory.values() {
            match v1.get(&inst.ident) {
                None => (),
                Some(v2) => match v2.get(inst) {
                    None => (),
                    Some(v3) => {
                        resources.extend(v3.values().cloned());
                    }
                },
            }
        }
        resources
    }
/// Return all resources with instantiation matching
Return all resources with instantiation matching
Return all resources with instantiation matching
pub fn all_resources_by_inst(&self, inst: &StructInstantiation) -> Vec<BaseValue> {
        let mut resources = vec![];
        for v1 in self.saved_memory.values() {
            match v1.get(&inst.ident) {
                None => (),
                Some(v2) => match v2.get(inst) {
                    None => (),
                    Some(v3) => {
                        resources.extend(v3.values().cloned());
                    }
                },
            }
        }
        resources
    }
pub fn all_resources_by_inst ( & self , inst : & StructInstantiation ) -> Vec < BaseValue > { let mut resources = vec ! [ ] ; for v1 in self . saved_memory . values ( ) { match v1 . get ( & inst . ident ) { None => ( ) , Some ( v2 ) => match v2 . get ( inst ) { None => ( ) , Some ( v3 ) => { resources . extend ( v3 . values ( ) . cloned ( ) ) ; } } , } } resources }
Return all resources with instantiation matching
Return all resources with instantiation matching
&self
inst
&StructInstantiation