Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/ZeroIntensity/pointers.py
/ to_struct_ptr
Function
to_struct_ptr
src/pointers/c_pointer.py:272–276 ·
view source on GitHub ↗
Convert a struct to a pointer.
(struct: A)
Source
from the content-addressed store, hash-verified
270
271
272
def
to_struct_ptr(struct: A) ->
"StructPointer[A]"
:
273
""
"Convert a struct to a pointer."
""
274
from
.structure
import
StructPointer
275
276
return
StructPointer(id(struct))
277
278
279
@handle
Callers
1
_
Function · 0.90
Calls
1
StructPointer
Class · 0.85
Tested by
1
_
Function · 0.72