Struct polkavm_common::program::LineProgram
source · pub struct LineProgram<'a> { /* private fields */ }
Expand description
A line program state machine.
Implementations§
source§impl<'a> LineProgram<'a>
impl<'a> LineProgram<'a>
sourcepub fn entry_index(&self) -> usize
pub fn entry_index(&self) -> usize
Returns the entry index of this line program object.
sourcepub fn run(&mut self) -> Result<Option<RegionInfo<'_>>, ProgramParseError>
pub fn run(&mut self) -> Result<Option<RegionInfo<'_>>, ProgramParseError>
Runs the line program until the next region becomes available, or until the program ends.
Auto Trait Implementations§
impl<'a> Freeze for LineProgram<'a>
impl<'a> RefUnwindSafe for LineProgram<'a>
impl<'a> Send for LineProgram<'a>
impl<'a> Sync for LineProgram<'a>
impl<'a> Unpin for LineProgram<'a>
impl<'a> UnwindSafe for LineProgram<'a>
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