Function with generic type constraint vs function with reference to trait object. Why is one allowed and one not?

后端 未结 0 1651
闹比i
闹比i 2021-01-30 02:34

Very wordy title, but basically my question is, why am I allowed to do this:

pub fn dot(a: &K, b: &K) -> T where K: InnerProductSpace

        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题