Crates.io | slice-cell |
lib.rs | slice-cell |
version | 0.0.5 |
source | src |
created_at | 2023-01-07 06:23:52.052286 |
updated_at | 2023-01-24 08:01:30.012202 |
description | A `Cell<[T]>`-like mutable slice, that allows slice-like APIs. |
homepage | |
repository | https://github.com/zachs18/slice-cell |
max_upload_size | |
id | 752811 |
size | 51,192 |
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
.