Expand description
Upcasts, to avoid writing out wrapper types.
Macros§
Structs§
- An iterator that casts each element to some other type.
Traits§
- The
Casttrait is used to make annoying upcasts between logically equivalent types that imply wrappers. For example, one could convert aDomainGoalinto aGoalby doing: - The “helper” trait for
castthat actually implements the transformations. You can also use this if you want to have functions that take (e.g.) animpl CastTo<Goal<_>>or something like that. - An iterator adapter that casts each element we are iterating over to some other type.