#cell #no-std #slice #io #api #cursor #mutable

no-std slice-cell

A Cell<[T]>-like mutable slice, that allows slice-like APIs

5 releases

0.0.5 Jan 24, 2023
0.0.4 Jan 13, 2023
0.0.3 Jan 9, 2023
0.0.2 Jan 7, 2023
0.0.1 Jan 7, 2023

#2519 in Data structures

MIT/Apache

52KB
947 lines

slice-cell

slice_cell::SliceCell<T> is much like Cell<[T]>, but with some additional features.

In particular, &SliceCell<u8> implements std::io::Read and Write (under the "std" cargo feature), tokio::io::AsyncRead and AsyncWrite (under the "tokio" cargo feature), and slice_cell::io::Cursor<&SliceCell<u8>> implements those as well as std::io::Seek and tokio::io::AsyncSeek.

Dependencies

~0–5.5MB
~19K SLoC