struct LoopScope {
local: BTreeSet<String>,
carried: BTreeSet<String>,
independent: bool,
terminates: bool,
speculate: bool,
carried_effects: Vec<Effect>,
}Expand description
What a loop’s prefix may touch.
Fields§
§local: BTreeSet<String>Per-iteration names: the loop pattern and everything bound inside the body.
carried: BTreeSet<String>Places the body writes that outlive an iteration.
independent: bool#[psync::independent]: the programmer asserts iterations do not depend on each other.
terminates: boolThe body may end the whole loop (?, return, break): later iterations that run ahead
may be ones sequential code never reaches.
speculate: bool#[psync::speculate] on the loop (or speculate on the function): writes may run ahead
anyway.
carried_effects: Vec<Effect>Writes in the body whose target is the same in every iteration (not computed from the item): they order every effect on the same resource across iterations.
Implementations§
Source§impl LoopScope
impl LoopScope
Auto Trait Implementations§
impl Freeze for LoopScope
impl RefUnwindSafe for LoopScope
impl Send for LoopScope
impl Sync for LoopScope
impl Unpin for LoopScope
impl UnsafeUnpin for LoopScope
impl UnwindSafe for LoopScope
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