crates
crates copied to clipboard
secrecy: Secret.as_ref() ?
Would you be open to a PR that implemented a Secret::as_ref() method, that worked essentially the same as Option::as_ref()? That is, something like:
fn as_ref<T>(&self) -> SecretRef<&T> {
// ...
}