crates icon indicating copy to clipboard operation
crates copied to clipboard

secrecy: Secret.as_ref() ?

Open mpalmer opened this issue 1 year ago • 0 comments

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> {
  // ...
}

mpalmer avatar May 31 '24 22:05 mpalmer