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