So my problem is that I need that T of StructA<T> in impl Trait is the same as the T in StructB. I thought I could ensure this by not shadowing the type parameter at foo. However the compiler complains now about missign type parameters at foo.
Is that even possible?
Thank you for your advice. I run into some trubble with the associated type but the generic trait works well. Even if my code is now full of impl<'a, A, B, V, C> Trait<'a, A, V> for Struct<A, B, C> and so on because the underlying library I use already makes heavy use of generics aswell.
Off topic: I'm using sophia which I want to promote a little bit. It is an inspiring crate for handling Linked Data with only a few downloads and is still WIP. However, it shows what new possibilities arise from using Rust for Semantic Web.