#cell #slice #no-std #async-io #slice-like #mutable #api #cursor #async-write

no-std slice-cell

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

7 releases

new 0.1.1 Jul 4, 2025
0.1.0 Jul 4, 2025
0.0.5 Jan 24, 2023

#2679 in Data structures

MIT/Apache

53KB
955 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–7.5MB
~54K SLoC