|
|
@ -22,7 +22,7 @@ Run `cargo add veccell` or add the following in `Cargo.toml`:
|
|
|
|
|
|
|
|
|
|
|
|
```toml
|
|
|
|
```toml
|
|
|
|
[dependencies]
|
|
|
|
[dependencies]
|
|
|
|
veccell = "0.1.0"
|
|
|
|
veccell = "0.4"
|
|
|
|
```
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
## Examples
|
|
|
|
## Examples
|
|
|
@ -105,6 +105,15 @@ let first = arr.borrow_mut(0);
|
|
|
|
assert!(arr.borrow_mut(1).is_none());
|
|
|
|
assert!(arr.borrow_mut(1).is_none());
|
|
|
|
```
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
## serde
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
`serde` is supported. To use it, enable the `serde` feature:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
```toml
|
|
|
|
|
|
|
|
[dependencies]
|
|
|
|
|
|
|
|
veccell = { version = "0.4", features = ["serde"] }
|
|
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
## License
|
|
|
|
## License
|
|
|
|
|
|
|
|
|
|
|
|
This project is dual-licensed under the MIT license and the Apache v2.0 license.
|
|
|
|
This project is dual-licensed under the MIT license and the Apache v2.0 license.
|
|
|
|