Category "associated-types"

Associated type for ndarray arguments in rust

I want to create an interface for a (numeric) algorithm for which I want to provide an implementation with ndarray and similar libraries (let's say pytorch bind

Can't create an Array of types conforming to a Protocol in Swift

I have the following protocol and a class that conforms to it: protocol Foo{ typealias BazType func bar(x:BazType) ->BazType } class Thing: Foo {