slice_trait 0.3.14

A generic trait for any slice, with item as a type parameter
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use core::ops::DerefMut;

use crate::{private, AsSlice, IntoBoxedSlice};

use alloc::boxed::Box;

/// A trait for a boxed slice `[Self::Elem]`
pub const trait BoxedSlice: private::BoxedSlice + /*~const*/ DerefMut<Target = [<Self as AsSlice>::Elem]> + ~const IntoBoxedSlice
{
    
}

impl<T> const BoxedSlice for Box<[T]>
{
    
}