4 questions from the last 7 days
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 ...
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 ...
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 ...
-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 (...