You can create a feature object with Rc from Rust 1.1. This compiles:
use std::rc::Rc; trait Field: Send + Sync { fn name(&self); } enum Select { Only(Vec<Rc<Field>>), All, }
Please note that in your original example Clone used, but you cannot make such an attribute into an object-object, because it is not protected by objects , I deleted it to answer the question.
I also removed the redundancy of enumeration option names.
source share