fixed_array/
lib.rs

1#![no_std]
2use core::ops::IndexMut;
3
4pub trait Array: Sized + IndexMut<usize>
5where
6    Self::Output: Sized,
7{
8    type Item;
9    const SIZE: usize;
10}
11
12impl<Item, const SIZE: usize> Array for [Item; SIZE] {
13    type Item = Item;
14    const SIZE: usize = SIZE;
15}