class_extends!() { /* proc-macro */ }
Expand description

Operation used when defining classes. Using class_extends!, the traits Deref, Clone, PartialEq, Eq, Hash, AsRef, From and TryFrom are implemented to inherit characteristics from ascending classes.

This assumes that the class is a struct of the form struct S(o);.

Syntax

The syntax takes a sequence of types in descending order followed by an identifying Component type:

class_extends!(Subtype < Super1 < SuperN < Node, use SubtypeComponent);

Notes

This operation is for internal use by oop_inheritance. To define classes, use simply the class! syntax.