(self)
| 90 | return self |
| 91 | |
| 92 | def debug(self): |
| 93 | args = [Var(self.type.mut_ref(), 'this')] |
| 94 | inner_args = [Var(_stringliteral.type, '"{:?}"')] + args |
| 95 | type = self.program.string.type |
| 96 | self.methods.append(Method(type, self.c_name, "debug", args, |
| 97 | make_safe_call(type, 'format!', inner_args), docs=f'Create a human-readable representation of a {self.type.to_python()}', |
| 98 | pyname="__repr__")) |
| 99 | |
| 100 | def clone(self): |
| 101 | self.method(self.type, "clone", [], docs=f"Deep-copy a {self.type.to_python()}", self_ref=True) |
no test coverage detected