FheDecoder

Trait FheDecoder 

Source
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§

Source

type Error

The type of error returned.

Required Methods§

Source

fn try_decode<O>(pt: &P, encoding: O) -> Result<Self, Self::Error>
where O: Into<Option<P::Encoding>>,

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.

Implementors§