GGSWNoise

Trait GGSWNoise 

Source
pub trait GGSWNoise<BE: Backend> {
    // Required methods
    fn ggsw_assert_noise<R, S, P, F>(
        &self,
        res: &R,
        sk_prepared: &S,
        pt_want: &P,
        max_noise: &F,
    )
       where R: GGSWToRef,
             S: GLWESecretPreparedToRef<BE>,
             P: ScalarZnxToRef,
             F: Fn(usize) -> f64;
    fn ggsw_print_noise<R, S, P>(&self, res: &R, sk_prepared: &S, pt_want: &P)
       where R: GGSWToRef,
             S: GLWESecretPreparedToRef<BE>,
             P: ScalarZnxToRef;
}

Required Methods§

Source

fn ggsw_assert_noise<R, S, P, F>( &self, res: &R, sk_prepared: &S, pt_want: &P, max_noise: &F, )

Source

fn ggsw_print_noise<R, S, P>(&self, res: &R, sk_prepared: &S, pt_want: &P)

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<BE: Backend> GGSWNoise<BE> for Module<BE>

Source§

fn ggsw_assert_noise<R, S, P, F>( &self, res: &R, sk_prepared: &S, pt_want: &P, max_noise: &F, )

Source§

fn ggsw_print_noise<R, S, P>(&self, res: &R, sk_prepared: &S, pt_want: &P)

Implementors§