Note: typedef is implemented. extend is not.

typedef

To create a named alias for some type, use typedef:

typedef Noderef &rc mut Node

In this example, wherever Noderef is used, it will be understood to mean &rc mut Node.

extend

It is possible to enrich an existing type by adding additional methods to it.

extend f32
  fn cos(self f32) { ... }

_