FheEncoder

Trait FheEncoder 

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

Source

type Error

The type of error returned.

Required Methods§

Source

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.

Implementors§