pub trait NonRecursive { }
Expand description
Indicates that the speed of cloning a type does not recursively depend on any generics, opting the type into several blanket implementations.
As examples, u8
and Rc<T>
implement this trait, while Option<T>
does not.
A NonRecursive
type need only implement a cloning operation at the fastest applicable speed,
and blanket implementations handle the rest. These blanket implementations would interfere
with, for example, an attempt to pass through the speed of cloning T
to the speed of cloning
Option<T>
.