pub struct Application<T> { /* private fields */ }Expand description
The outcome of successful compilation. Contains one or more CompiledFheProgram.
Implementations§
Source§impl<T> Application<T>where
T: Fhe,
impl<T> Application<T>where
T: Fhe,
Sourcepub fn params(&self) -> &Params
pub fn params(&self) -> &Params
Returns the Params suitable for running each contained CompiledFheProgram.
These parameters were chosen during compilation.
§Remarks
If no fhe_program was specified, this function panics.
Sourcepub fn get_program<N>(&self, name: N) -> Option<&CompiledFheProgram>
👎Deprecated
pub fn get_program<N>(&self, name: N) -> Option<&CompiledFheProgram>
Gets the CompiledFheProgram with the given name or None if not present.
Sourcepub fn get_fhe_program<N>(&self, name: N) -> Option<&CompiledFheProgram>
pub fn get_fhe_program<N>(&self, name: N) -> Option<&CompiledFheProgram>
Gets the CompiledFheProgram with the given name or None if not present.
Sourcepub fn get_programs(
&self,
) -> impl Iterator<Item = (&String, &CompiledFheProgram)>
👎Deprecated
pub fn get_programs( &self, ) -> impl Iterator<Item = (&String, &CompiledFheProgram)>
Returns an iterator over all the compiled programs.
§Deprecated
Please use get_fhe_programs instead.
Sourcepub fn get_fhe_programs(
&self,
) -> impl Iterator<Item = (&String, &CompiledFheProgram)>
pub fn get_fhe_programs( &self, ) -> impl Iterator<Item = (&String, &CompiledFheProgram)>
Returns an iterator over all the compiled programs.
Source§impl<T> Application<T>where
T: Zkp,
impl<T> Application<T>where
T: Zkp,
Sourcepub fn get_zkp_program<N>(&self, name: N) -> Option<&CompiledZkpProgram>
pub fn get_zkp_program<N>(&self, name: N) -> Option<&CompiledZkpProgram>
Returns the CompiledZkpProgram with the given name
or None if not present.
Sourcepub fn get_zkp_programs(
&self,
) -> impl Iterator<Item = (&String, &CompiledZkpProgram)>
pub fn get_zkp_programs( &self, ) -> impl Iterator<Item = (&String, &CompiledZkpProgram)>
Returns an iterator over all CompiledZkpPrograms.
Trait Implementations§
Source§impl<T: Clone> Clone for Application<T>
impl<T: Clone> Clone for Application<T>
Source§fn clone(&self) -> Application<T>
fn clone(&self) -> Application<T>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<T> Freeze for Application<T>
impl<T> !RefUnwindSafe for Application<T>
impl<T> Send for Application<T>where
T: Send,
impl<T> Sync for Application<T>where
T: Sync,
impl<T> Unpin for Application<T>where
T: Unpin,
impl<T> !UnwindSafe for Application<T>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more