write-only
Synopsis
Rust references/slices that provide write-access, but no read-access.
Motivation
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!
Usage
Write-only reference:
use ;
let mut value: u8 = 0;
let mut write_only = from;
write;
assert_eq!;
Write-only slice:
use ;
let mut values: = .collect;
let mut write_only = from;
write;
assert_eq!;
Contributing
Please read CONTRIBUTING.md for details on our code of conduct,
and the process for submitting pull requests to us.
Versioning
We use SemVer for versioning. For the versions available, see the tags on this repository.
License
This project is licensed under the MPL-2.0 – see the LICENSE.md file for details.