pub fn record_res(&mut self, kind: &ResKind, id: ResValueId) {
        if !self.res_ids.contains_key(kind) {
            self.res_ids.insert(kind.clone(), Vec::new());
            self.res_kinds.push(kind.clone());
        }
        self.res_ids.get_mut(kind).unwrap().push(id);
    }
/// Record a generate resource to context.
Record a generate resource to context.
Record a generate resource to context .
pub fn record_res(&mut self, kind: &ResKind, id: ResValueId) {
        if !self.res_ids.contains_key(kind) {
            self.res_ids.insert(kind.clone(), Vec::new());
            self.res_kinds.push(kind.clone());
        }
        self.res_ids.get_mut(kind).unwrap().push(id);
    }
pub fn record_res ( & mut self , kind : & ResKind , id : ResValueId ) { if ! self . res_ids . contains_key ( kind ) { self . res_ids . insert ( kind . clone ( ) , Vec :: new ( ) ) ; self . res_kinds . push ( kind . clone ( ) ) ; } self . res_ids . get_mut ( kind ) . unwrap ( ) . push ( id ) ; }
Record a generate resource to context.
Record a generate resource to context .
&mut self
kind
&ResKind
id
ResValueId
&mut self
kind
&ResKind
id
ResValueId