(&mut self)
| 544 | } |
| 545 | |
| 546 | fn custom_unpublish(&mut self) -> Result<bool> { |
| 547 | if let Some(mem) = self.custom_code_memory.as_ref() { |
| 548 | let text = self.text(); |
| 549 | mem.unpublish_executable(text.as_ptr(), text.len())?; |
| 550 | Ok(true) |
| 551 | } else { |
| 552 | Ok(false) |
| 553 | } |
| 554 | } |
| 555 | |
| 556 | /// Return a mutable borrow to the code, suitable for editing. |
| 557 | /// |