new

Function new 

Source
pub fn new<Rhs, DynSliceFromType>(value: &[DynSliceFromType]) -> Slice<'_, Rhs>
where Dyn<Rhs>: Pointee<Metadata = DynMetadata<Dyn<Rhs>>>, DynSliceFromType: 'static + PartialEq<Rhs>,
Expand description

Create a dyn slice from a slice of a type that implements PartialEq.