MCPcopy Create free account
hub / github.com/battlecode/battlecode-2018 / ref

Method ref

bindings/frankenswig/struct.py:27–30  ·  view source on GitHub ↗

Mutable references coerce to non-mutable references, and the types in the C API are the same.

(self)

Source from the content-addressed store, hash-verified

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)

Callers 1

eqMethod · 0.45

Calls 1

StructTypeClass · 0.85

Tested by

no test coverage detected