Trait ethers::core::k256::elliptic_curve::pkcs8::der::Decodable [−][src]
pub trait Decodable<'a> {
fn decode(decoder: &mut Decoder<'a>) -> Result<Self, Error>;
fn from_der(bytes: &'a [u8]) -> Result<Self, Error> { ... }
}
Expand description
Decoding trait.
This trait provides the core abstraction upon which all decoding operations are based.
Blanket impl for TryFrom<Any>
In almost all cases you do not need to impl this trait yourself, but rather
can instead impl TryFrom<Any<'a>, Error = Error>
and receive a blanket
impl of this trait.