pub trait GLWETensorKeyPreparedFactory<B: Backend>where
Self: GGLWEPreparedFactory<B>,{
// Provided methods
fn alloc_tensor_key_prepared(
&self,
base2k: Base2K,
k: TorusPrecision,
dnum: Dnum,
dsize: Dsize,
rank: Rank,
) -> GLWETensorKeyPrepared<Vec<u8>, B> { ... }
fn alloc_tensor_key_prepared_from_infos<A>(
&self,
infos: &A,
) -> GLWETensorKeyPrepared<Vec<u8>, B>
where A: GGLWEInfos { ... }
fn bytes_of_tensor_key_prepared(
&self,
base2k: Base2K,
k: TorusPrecision,
rank: Rank,
dnum: Dnum,
dsize: Dsize,
) -> usize { ... }
fn bytes_of_tensor_key_prepared_from_infos<A>(&self, infos: &A) -> usize
where A: GGLWEInfos { ... }
fn prepare_tensor_key_tmp_bytes<A>(&self, infos: &A) -> usize
where A: GGLWEInfos { ... }
fn prepare_tensor_key<R, O>(
&self,
res: &mut R,
other: &O,
scratch: &mut Scratch<B>,
)
where R: GGLWEPreparedToMut<B>,
O: GGLWEToRef { ... }
}Provided Methods§
fn alloc_tensor_key_prepared( &self, base2k: Base2K, k: TorusPrecision, dnum: Dnum, dsize: Dsize, rank: Rank, ) -> GLWETensorKeyPrepared<Vec<u8>, B>
fn alloc_tensor_key_prepared_from_infos<A>(
&self,
infos: &A,
) -> GLWETensorKeyPrepared<Vec<u8>, B>where
A: GGLWEInfos,
fn bytes_of_tensor_key_prepared( &self, base2k: Base2K, k: TorusPrecision, rank: Rank, dnum: Dnum, dsize: Dsize, ) -> usize
fn bytes_of_tensor_key_prepared_from_infos<A>(&self, infos: &A) -> usizewhere
A: GGLWEInfos,
fn prepare_tensor_key_tmp_bytes<A>(&self, infos: &A) -> usizewhere
A: GGLWEInfos,
fn prepare_tensor_key<R, O>(
&self,
res: &mut R,
other: &O,
scratch: &mut Scratch<B>,
)where
R: GGLWEPreparedToMut<B>,
O: GGLWEToRef,
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.