Skip to content

Instantly share code, notes, and snippets.

@yiqing-95
yiqing-95 / playground.rs
Created October 5, 2022 10:18 — forked from anonymous/playground.rs
Shared via Rust Playground
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 {
}