3 ms·How do you enforce them as constraints on a method?by runT1ME 12y agoHow do you enforce them as constraints on a method?dan00 12y agopub trait SomeTrait { ... } pub fn some_function<T: SomeTrait>(arg: T) { ... }