MCPcopy Create free account
hub / github.com/Houtamelo/spire_enum / SaneMethodSignature

Class SaneMethodSignature

proc_macro/src/delegate_impl/trait_impl.rs:202–215  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

200 items,
201 } = sane;
202
203 let (impl_generics, impl_where_clause) = impl_generics.into_pair();
204
205 let macro_ident = {
206 let enum_ident = find_enum_ident(&self_ty)
207 .ok_or_else(|| Error::new(self_ty.span(), "Could not find main ident in this type."))?;
208
209 delegate_macro_ident(enum_ident)
210 };
211
212 let items = items
213 .into_inner()
214 .into_iter()
215 .map(|item| match item {
216 SaneItem::AssocType(ty) => Ok(ty.to_token_stream()),
217 SaneItem::AssocConst(cn) => Ok(cn.to_token_stream()),
218 SaneItem::FnWithExplicitImpl(explicit) => Ok(explicit.to_token_stream()),

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected