pub unsafe trait Split<T, K>: GenericSequence<T>where
K: ArrayLength<T>,{
type First: GenericSequence<T>;
type Second: GenericSequence<T>;
// Required method
fn split(self) -> (Self::First, Self::Second);
}
Expand description
Defines a GenericSequence
that can be split into two parts at a given pivot index.
Required Associated Types§
Sourcetype First: GenericSequence<T>
type First: GenericSequence<T>
First part of the resulting split array
Sourcetype Second: GenericSequence<T>
type Second: GenericSequence<T>
Second part of the resulting split array
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.