MCPcopy Index your code
hub / github.com/SoftbearStudios/bitcode / added_to

Method added_to

bitcode_derive/src/bound.rs:26–31  ·  view source on GitHub ↗
(self, mut generics: syn::Generics)

Source from the content-addressed store, hash-verified

24 }
25
26 pub fn added_to(self, mut generics: syn::Generics) -> syn::Generics {
27 for (bound, (fields, extra_bound_types)) in self.bounds {
28 generics = with_bound(&fields, extra_bound_types, &generics, &bound);
29 }
30 generics
31 }
32}
33
34// Based on https://github.com/serde-rs/serde/blob/0c6a2bbf794abe966a4763f5b7ff23acb535eb7f/serde_derive/src/bound.rs#L94-L314

Callers 1

deriveMethod · 0.80

Calls 1

with_boundFunction · 0.85

Tested by

no test coverage detected