AsRef

gdext.internal.register.CompEnum.AsRef
See theAsRef companion object
trait AsRef[C, E]

Projects a comp field's declared type C to the bare wrapper E the enumeration expects. Summoned at the macro site; the annotation fixes E, so a comp of an incompatible type fails to summon with a clear compile error. An unassigned/empty reference projects to a null E (the helpers guard it).

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Abstract methods

def ref(c: C): E