Trait Deserialize
pub trait Deserialize: Sized {
// Required method
fn deserialize(bytes: &[u8]) -> Result<Self, Error>;
}
Expand description
A trait for deserializing a value from raw data in PSBT key-value pairs.
Required Methods§
fn deserialize(bytes: &[u8]) -> Result<Self, Error>
fn deserialize(bytes: &[u8]) -> Result<Self, Error>
Deserialize a value from raw data.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.