1 2 3 4 5 6
use std::any::Any; pub trait Context { fn get(&self, key: &str) -> Option<&dyn Any>; fn set(&mut self, key: &str, value: &dyn Any); }