Module slice_or_box

Source
Expand description

Cow<'t, [T]> requires T to implement ToOwned, i.e. to_owned() wants to make a deep copy, apparently. SliceOrBox is just about the outermost layer. (RefOrOwned only represents a reference or owned value of the same type and hence does not work for this, either.)

Enumsยง

SliceOrBox
SliceOrBoxIterator