Rust references/slices that provide write-access, but no read-access.
Sometimes is is desirable to only provide write-access to a value or slice of values without also providing read-access..
This is where write-only
comes in handy!
Write-only reference:
```rust use write_only::{prelude::*, Put};
fn write
let mut value: u8 = 0;
let mut writeonly = WriteOnlyRef::from(&mut value); write(&mut writeonly);
assert_eq!(value, 42); ```
Write-only slice:
```rust use write_only::{prelude::*, PutAt};
fn write
let mut values: Vec
let mut writeonly = WriteOnlySlice::from(&mut values[..]); write(&mut writeonly);
assert_eq!(values[2], 42u8); ```
Please read CONTRIBUTING.md for details on our code of conduct,
and the process for submitting pull requests to us.
We use SemVer for versioning. For the versions available, see the tags on this repository.
This project is licensed under the MPL-2.0 – see the LICENSE.md file for details.