Skip to main content
Filter by
Sorted by
Tagged with
0 votes
3 answers
83 views

Generic method in non generic interface

Here is my interface. public interface IFoo { TOut Process<TOut, TIn>(SomeClass<TOut, TIn> container) where TOut : class, where TIn : class; } I would like to achieve ...
Ihor Marenych's user avatar
5 votes
2 answers
97 views

Trying to make bounded floating point types in rust, problem with From and Into

Here is the code, I'm trying to make bounded floating point numbers. I do this with a Bounds trait, that must be implemented for the generic type B in the Bounded number struct. I would like to be ...
Tommaso Clini's user avatar
0 votes
0 answers
36 views

Wrap a generic class?

I'm trying to create a Sentry instrumenter for a gRPC server, which is basically generated code feeding a map with handler. I'm trying to wrap the handler, which I'm struggling on right now, because ...
Entilore's user avatar
  • 170
-1 votes
0 answers
42 views

RUST DIESEL generic repository

Im trying to implement a generic repository for any model i have. The problem im facing now as i understand lies in trait bounds for struct which are derived with Queryable (DBSchema), Insertable (...
oscorped's user avatar