pub struct Program { /* private fields */ }Expand description
Loaded Airbender program distribution, including manifest and artifacts.
Implementations§
Source§impl Program
impl Program
pub fn load(dist_dir: impl AsRef<Path>) -> Result<Self>
pub fn dist_dir(&self) -> &Path
pub fn manifest(&self) -> &Manifest
pub fn app_bin(&self) -> &Path
pub fn app_elf(&self) -> &Path
pub fn app_text(&self) -> &Path
Sourcepub fn transpiler_runner(&self) -> TranspilerRunnerBuilder
pub fn transpiler_runner(&self) -> TranspilerRunnerBuilder
Create a transpiler runner builder bound to this program.
Sourcepub fn gpu_prover(&self) -> GpuProverBuilder
pub fn gpu_prover(&self) -> GpuProverBuilder
Create a GPU prover builder bound to this program.
Sourcepub fn dev_prover(&self) -> DevProverBuilder
pub fn dev_prover(&self) -> DevProverBuilder
Create a development prover builder bound to this program.
Sourcepub fn cpu_prover(&self) -> CpuProverBuilder
pub fn cpu_prover(&self) -> CpuProverBuilder
Create a CPU prover builder bound to this program.
Sourcepub fn dev_verifier(&self) -> DevVerifierBuilder
pub fn dev_verifier(&self) -> DevVerifierBuilder
Create a development verifier builder bound to this program.
Sourcepub fn real_verifier(&self, level: ProverLevel) -> RealVerifierBuilder
pub fn real_verifier(&self, level: ProverLevel) -> RealVerifierBuilder
Create a real verifier builder bound to this program.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Program
impl RefUnwindSafe for Program
impl Send for Program
impl Sync for Program
impl Unpin for Program
impl UnwindSafe for Program
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,
§impl<T> CudaVariable<T> for T
impl<T> CudaVariable<T> for T
§impl<T> CudaVariableMut<T> for T
impl<T> CudaVariableMut<T> for T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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