DEV Community

Discussion on: Rust - my dumbness with grokking impl<T>

rsalmei profile image
Rogério Sampaio de Almeida

That initial <T> declaration is actually read as "For any type T...". And that's why it supports trait bounds there, an impl<T: Clone + Send> means "For any type T that also implements Clone and Send..." 😉