Internals guide: Code generation
Describe the code generation step.
-
We take the hir::Program and for each class, we create a
ClassContext
and generate code for it. -
Sebastian's examples in gobject-example-rs
-
boilerplate.rs
-
What are slots and why do we talk about them all the time? (ABI considerations)
-
get_priv()
and the machinery to create/drop the instance-private struct. -
What are method trampolines?
-
What are signal trampolines?
-
All the indirection in virtual methods.
-
What does glib-rs do for us?
-
The somewhat magic traits used by
FnSig
's methods. -
Why we need floating reference guards