pub trait OwnedSlice {
type Item;
type Take: TakeOwnedSlice<Item = Self::Item>;
// Required method
fn into_take_owned_slice(self) -> Self::Take;
}Expand description
A trait for objects that own a slice of elements.
For example [T; N], Vec<T>, Box<[T]> and vec::Drain<T>.
This trait is used for the parameter of alloc_slice_move, init_move, append and from_owned_slice_in.
Any implementor of TakeOwnedSlice automatically implements this trait.
Required Associated Types§
Sourcetype Take: TakeOwnedSlice<Item = Self::Item>
type Take: TakeOwnedSlice<Item = Self::Item>
A type that Self can convert into that implements TakeOwnedSlice.
Required Methods§
Sourcefn into_take_owned_slice(self) -> Self::Take
fn into_take_owned_slice(self) -> Self::Take
Converts this type into one that implements TakeOwnedSlice.