(&self, function_id: u32)
| 86 | } |
| 87 | |
| 88 | pub fn get_function(&self, function_id: u32) -> Rc<Chunk> { |
| 89 | self.functions[&function_id].chunk.clone() |
| 90 | } |
| 91 | |
| 92 | pub fn save_to_file<P: AsRef<Path>>(&self, path: P) -> Result<(), EncodeError> { |
| 93 | let encoded: Vec<u8> = encode_to_vec(self, BINCODE_CONFIG)?; |