Trait NumCiphertexts

Source
pub trait NumCiphertexts {
    const NUM_CIPHERTEXTS: usize;
}
Expand description

Declare how many ciphertexts an FheType decomposes into. The runtime needs this to correctly bundle return values from an Fhe Program.

Required Associated Constants§

Source

const NUM_CIPHERTEXTS: usize

The number of ciphertexts this type decomposes into.

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.

Implementations on Foreign Types§

Source§

impl<T, const N: usize> NumCiphertexts for [T; N]
where T: NumCiphertexts,

Implementors§

Source§

impl NumCiphertexts for Rational

Source§

impl NumCiphertexts for Signed

Source§

impl<L, T> NumCiphertexts for Indeterminate<L, T>

Source§

const NUM_CIPHERTEXTS: usize = T::NUM_CIPHERTEXTS

Source§

impl<T> NumCiphertexts for Cipher<T>
where T: FheType,

Source§

const NUM_CIPHERTEXTS: usize = T::NUM_CIPHERTEXTS

Source§

impl<T, S> NumCiphertexts for FheProgramNode<T, S>
where T: NumCiphertexts,

Source§

const NUM_CIPHERTEXTS: usize = T::NUM_CIPHERTEXTS

Source§

impl<const INT_BITS: usize> NumCiphertexts for Fractional<INT_BITS>

Source§

impl<const LANES: usize> NumCiphertexts for Batched<LANES>

Source§

impl<const LIMBS: usize> NumCiphertexts for Unsigned<LIMBS>