pub trait FheEncoder<V>where
Self: FhePlaintext,{
type Error;
// Required method
fn try_encode(
value: V,
encoding: Self::Encoding,
par: &Arc<Self::Parameters>,
) -> Result<Self, Self::Error>;
}Expand description
Encode a value using a specified encoding.
Required Associated Types§
Required Methods§
Sourcefn try_encode(
value: V,
encoding: Self::Encoding,
par: &Arc<Self::Parameters>,
) -> Result<Self, Self::Error>
fn try_encode( value: V, encoding: Self::Encoding, par: &Arc<Self::Parameters>, ) -> Result<Self, Self::Error>
Attempt to encode a value using a specified 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.