Trait Input

Source
pub trait Input {
    type Output;

    // Required method
    fn input() -> Self::Output;
}
Expand description

Create an input node from an Fhe Program input argument.

Required Associated Types§

Source

type Output

The type returned by the input fn`.

Required Methods§

Source

fn input() -> Self::Output

Creates a new FheProgramNode denoted as an input to an Fhe Program graph.

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.

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> Input for [T; N]

Source§

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

Source§

fn input() -> Self::Output

Implementors§