Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: make
Zeroizing
transparent for cheap conversions
Sometimes libraries want to be generic across types like `Vec<u8>` and `Box<[u8]>`. Therefore, they use bounds like `T: AsRef<[u8]>`. The `Zeroizing<Vec<u8>>` type should be transparently equivalent to `Vec<u8>` in this regard. This allows `Zeroizing` to be used with all such bounds. Signed-off-by: Nathaniel McCallum <[email protected]>
- Loading branch information