MCPcopy Create free account
hub / github.com/AI45Lab/Code / register

Method register

core/src/program.rs:672–674  ·  view source on GitHub ↗
(&mut self, template: ProgramTemplate)

Source from the content-addressed store, hash-verified

670 }
671
672 pub fn register(&mut self, template: ProgramTemplate) {
673 self.insert(template);
674 }
675
676 pub fn try_register(&mut self, template: ProgramTemplate) -> Result<()> {
677 template.ensure_valid()?;

Calls 1

insertMethod · 0.45