I'm playing with the Deref traits and stuff. Mostly trying to get some of Rust's borrowing semantics.
This has that stack overflow problem until I rebase on @joajfreitas's recent changes, but I want to try something different...
like writing a separate constructor for Bus that uses MaybeUninit just to avoid stack overflow in debug builds (and tests).
I'm playing with the
Deref
traits and stuff. Mostly trying to get some of Rust's borrowing semantics.This has that stack overflow problem until I rebase on @joajfreitas's recent changes, but I want to try something different... like writing a separate constructor for
Bus
that uses MaybeUninit just to avoid stack overflow in debug builds (and tests).