pub struct LoopReport {
pub label: String,
pub prefetched: Vec<String>,
pub prefetched_lines: Vec<(usize, usize)>,
pub bound: usize,
pub changed: bool,
pub reason: String,
pub check: String,
pub line: usize,
pub end_line: usize,
}Expand description
One for loop and whether its iterations were prefetched.
Fields§
§label: String§prefetched: Vec<String>Labels of the statements run ahead for each iteration.
prefetched_lines: Vec<(usize, usize)>Their first and last source lines (0 when spans carry no location).
bound: usize§changed: bool§reason: StringWhy the loop was left alone.
check: StringFor a prefetched loop whose items name their own files: checked at run time, or why
that could not be checked and distinct items are assumed.
line: usizeFirst and last source line of the loop (0 when spans carry no location).
end_line: usizeTrait Implementations§
Source§impl Clone for LoopReport
impl Clone for LoopReport
Source§fn clone(&self) -> LoopReport
fn clone(&self) -> LoopReport
Returns a duplicate 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 moreSource§impl Debug for LoopReport
impl Debug for LoopReport
Source§impl Default for LoopReport
impl Default for LoopReport
Source§fn default() -> LoopReport
fn default() -> LoopReport
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for LoopReport
impl RefUnwindSafe for LoopReport
impl Send for LoopReport
impl Sync for LoopReport
impl Unpin for LoopReport
impl UnsafeUnpin for LoopReport
impl UnwindSafe for LoopReport
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