pub struct Keypair(_);
26 27 28
fn from(data: &[u8]) -> Self { Self::new(Ed25519KeyPair::from_pkcs8(data).expect("")) }
TypeId
self
Returns the argument unchanged.
Calls U::from(self).
U::from(self)
That is, this conversion is whatever the implementation of From<T> for U chooses to do.
From<T> for U
Self