pub struct AVMFile<N: Network> { /* private fields */ }Implementations§
Source§impl<N: Network> AVMFile<N>
impl<N: Network> AVMFile<N>
Sourcepub fn create(
directory: &Path,
program: Program<N>,
is_main: bool,
) -> Result<Self>
pub fn create( directory: &Path, program: Program<N>, is_main: bool, ) -> Result<Self>
Creates a new AVM program file, given the directory path, program ID, and is_main indicator.
Sourcepub fn open(
directory: &Path,
program_id: &ProgramID<N>,
is_main: bool,
) -> Result<Self>
pub fn open( directory: &Path, program_id: &ProgramID<N>, is_main: bool, ) -> Result<Self>
Opens the AVM program file, given the directory path, program ID, and is_main indicator.
Sourcepub fn exists_at(&self, file_path: &Path) -> bool
pub fn exists_at(&self, file_path: &Path) -> bool
Returns true if the file exists at the given path.
Sourcepub fn main_exists_at(directory: &Path) -> bool
pub fn main_exists_at(directory: &Path) -> bool
Returns true if the main program file exists at the given directory path.
Sourcepub fn main_file_name() -> String
pub fn main_file_name() -> String
Returns the main AVM program file name.
Auto Trait Implementations§
impl<N> Freeze for AVMFile<N>
impl<N> RefUnwindSafe for AVMFile<N>where
<N as Environment>::Field: RefUnwindSafe,
N: RefUnwindSafe,
<N as Environment>::Projective: RefUnwindSafe,
<N as Environment>::Scalar: RefUnwindSafe,
impl<N> Send for AVMFile<N>
impl<N> Sync for AVMFile<N>
impl<N> Unpin for AVMFile<N>where
<N as Environment>::Field: Unpin,
N: Unpin,
<N as Environment>::Projective: Unpin,
<N as Environment>::Scalar: Unpin,
impl<N> UnwindSafe for AVMFile<N>where
<N as Environment>::Field: UnwindSafe,
N: UnwindSafe,
<N as Environment>::Projective: UnwindSafe,
<N as Environment>::Scalar: UnwindSafe,
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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