1 2 3 4 5 6 7 8 9 10
use core::fmt::Debug; use std::collections::HashMap; pub type Attribute = String; pub type Attributes = HashMap<String, Attribute>; pub trait Attribuable: Debug + Send + Sync { fn attributes(&self) -> &Attributes; }