pub trait SecretKeyFromRef<T>: Key {
    // Required method
    fn sk_from_ref(x: &T) -> &Self::SecretKey;
}
Expand description

A &value -> &SecretKey conversion that consumes the input value. The opposite of IntoSecretKey.

Required Methods§

source

fn sk_from_ref(x: &T) -> &Self::SecretKey

Implementors§