pub trait TryFromPlaintext: Sized {
// Required methods
fn try_from_plaintext(value: Plaintext) -> Result<Self, TypeParseError>;
fn try_from_optional_plaintext(
value: Option<Plaintext>,
) -> Result<Self, TypeParseError>;
}
Required Methods§
fn try_from_plaintext(value: Plaintext) -> Result<Self, TypeParseError>
fn try_from_optional_plaintext( value: Option<Plaintext>, ) -> Result<Self, TypeParseError>
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.