This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
struct Red; | |
struct Green; | |
// Any trait allows dynamic type checks | |
use std::any::{Any, TypeId}; | |
use std::collections::HashMap; | |
// Every Feature also implements Any trait | |
trait Feature : Any { | |
} |