graydon/rust — Issue #1437: Implement cast-to-iface
Author: marijnh
Created: 2012-01-05 13:28:59+00:00
State: open
Labels: feature

`myvalue as myiface` should, if `myvalue` is of a type that has an impl of `myiface` in scope, copy the value into a boxed representation, along with the dict needed to treat it as myiface. Values of such a type can have methods called on them, which will be resolved through the dict.

This depends on #1436