Trait Output

Source
pub trait Output {
    type Output;

    // Required method
    fn output(&self) -> Self::Output;
}
Expand description

Captures an output for an FHE program.

Required Associated Types§

Source

type Output

The captured object return type.

Required Methods§

Source

fn output(&self) -> Self::Output

Denote this object is an output by appending an appropriate output FHE program nodes

You should not call this, but rather allow the fhe_program macro to do this on your behalf.

§Undefined behavior

This type references memory in a backing FheContext and without carefully ensuring FheProgramNodes never outlive the backing context, use-after-free can occur.

Implementations on Foreign Types§

Source§

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

Source§

type Output = [<T as Output>::Output; N]

Source§

fn output(&self) -> Self::Output

Implementors§