pub trait FheDecoder<P: FhePlaintext>where
Self: Sized,{
type Error;
// Required method
fn try_decode<O>(pt: &P, encoding: O) -> Result<Self, Self::Error>
where O: Into<Option<P::Encoding>>;
}Expand description
Decode the value in the plaintext with the specified (optional) encoding.
Required Associated Types§
Required Methods§
Sourcefn try_decode<O>(pt: &P, encoding: O) -> Result<Self, Self::Error>
fn try_decode<O>(pt: &P, encoding: O) -> Result<Self, Self::Error>
Attempt to decode a FhePlaintext into a value, using an (optional)
encoding.
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.