dyn-slice

Crates.iodyn-slice
lib.rsdyn-slice
version3.2.2
sourcesrc
created_at2023-07-12 00:42:37.777226
updated_at2024-05-05 23:56:09.686898
description&dyn [Trait] implementation, inspired by a Reddit thread.
homepagehttps://github.com/tomBoddaert/dyn-slice/
repositoryhttps://github.com/tomBoddaert/dyn-slice/
max_upload_size
id914189
size114,086
(tomBoddaert)

documentation

README

Rust

Dyn-Slice

An implementation of a &dyn [Trait]-like reference, inspired by a Reddit thread.

dyn-slices are slices of trait objects. Indexing into one yields a trait object reference. The vtable pointer is only stored once.

cargo add dyn-slice

Latest documentation
Examples

dyn-slice on crates.io
dyn-slice on lib.rs
dyn-slice on GitHub

Warning

This was originally just a proof of concept and may has some bugs, so it may be best not to use it in production (or any important) code.

With that said, feel free to use it in code that does not have to be reliable and to open an issue if you find any bugs.

License

Dyn-Slice is dual-licensed under either the Apache License Version 2.0 or MIT license at your option.

Commit count: 19

cargo fmt