Trait IntoSlice

Source
pub trait IntoSlice: AsSlice + Sized {
    // Required method
    const fn into_boxed_slice(self) -> Box<[Self::Item]>;
}
Expand description

A trait for obtaining a boxed slice [Self::Item]

Required Methods§

Source

const fn into_boxed_slice(self) -> Box<[Self::Item]>

Yields boxed slice from generic

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.

Implementations on Foreign Types§

Source§

impl<T> IntoSlice for Box<[T]>

Source§

const fn into_boxed_slice(self) -> Box<[Self::Item]>

Implementors§