Mutable references coerce to non-mutable references, and the types in the C API are the same.
(self)
| 25 | self.kind = kind |
| 26 | |
| 27 | def ref(self): |
| 28 | '''Mutable references coerce to non-mutable references, and the |
| 29 | types in the C API are the same.''' |
| 30 | return StructType(self.wrapper, kind=StructType.RUST_MUT_REF) |
| 31 | |
| 32 | def mut_ref(self): |
| 33 | return StructType(self.wrapper, kind=StructType.RUST_MUT_REF) |