Trait AnonymousTypeGenerator
Source pub trait AnonymousTypeGenerator<'a> {
// Required methods
fn resolve(&self) -> &'a Resolve;
fn anonymous_type_handle(
&mut self,
id: TypeId,
handle: &Handle,
docs: &Docs,
);
fn anonymous_type_tuple(&mut self, id: TypeId, ty: &Tuple, docs: &Docs);
fn anonymous_type_option(&mut self, id: TypeId, ty: &Type, docs: &Docs);
fn anonymous_type_result(&mut self, id: TypeId, ty: &Result_, docs: &Docs);
fn anonymous_type_list(&mut self, id: TypeId, ty: &Type, docs: &Docs);
fn anonymous_type_future(
&mut self,
id: TypeId,
ty: &Option<Type>,
docs: &Docs,
);
fn anonymous_type_stream(
&mut self,
id: TypeId,
ty: &Option<Type>,
docs: &Docs,
);
fn anonymous_type_type(&mut self, id: TypeId, ty: &Type, docs: &Docs);
// Provided method
fn define_anonymous_type(&mut self, id: TypeId) { ... }
}