#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

#1618 in Data structures

Download history 1/week @ 2024-02-22 1/week @ 2024-02-29 6/week @ 2024-03-07 76/week @ 2024-03-14

84 downloads per month

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–1.1MB
~19K SLoC