3 ms·
Yes, but it is a bit awkward. You can can separate implementations depending on whether T has a particular member function. I need to look up how every time, th
by petters 9y ago
Yes, but it is a bit awkward. You can can separate implementations depending on whether T has a particular member function. I need to look up how every time, though.
- masklinn 9y ago> You can can separate implementations depending on whether T has a particular member function. Separate implementation, but not separate interface? The Rust bit means Box is "transparently" clonable, meaning it only implements the clone trait(/interface) if the value it wraps also does, trying to clone a Box<T> where T can not be cloned would be a compile-time error.