pub trait DocTransform { type E; // Required method fn transform(&self, doc: &Doc) -> Result<Doc, Self::E>; }