3 ms·
> You can can separate implementations depending on whether T has a particular member function. Separate implementation, but not separate interface? The Rust b
by 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.