mirror of
https://github.com/horizon-rust/horizon-mixins.git
synced 2026-12-03 19:34:02 +07:00
[GH-ISSUE #16] Hooks on methods of generic impls #6
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
horizon-rust/horizon-mixins#6
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @reservedbytes on GitHub (Oct 31, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon-mixins/issues/16
Any injection into a method of a generic impl is rejected at plan time with
E_UNSUPPORTED_SIGNATURE("MVP requires a synchronous, safe, non-const, non-generic Rust function"), and the README lists generic targets as unsupportedIn Horizon that rules out the block shape and connection logic, which lives in
horizon_world::level::shapes::Sim<'_, L>:fence_connects_to(FenceBlock.connectsTo),wall_connects_to,bars_attach_to,fire_state_for,coral_plant_scan_for_water,concrete_touches_liquidand the rest of that implSo a mod can't make fences, walls or panes connect to its blocks, or change those rules
What would help
Seen on horizon-mixins
3f99a5c, and the README on main (a2af5c0) still lists generic targets as unsupported