pub(crate) struct Scope {
pub mutable: BTreeSet<String>,
pub handles: BTreeSet<String>,
pub fresh: BTreeMap<String, (Ident, TokenStream)>,
pub effects: Config,
pub sync: bool,
}Expand description
Mutability facts about the enclosing function, needed to tell reads from writes.
Fields§
§mutable: BTreeSet<String>mut bindings anywhere in the function.
handles: BTreeSet<String>Bindings that hold &mut values, including &mut self.
fresh: BTreeMap<String, (Ident, TokenStream)>#[psync::fresh] bindings and their initializers: each node that uses one evaluates the
initializer again instead of sharing the value (for example &mut context.pool()).
Keyed by name; holds the binding’s own identifier (for hygiene) and its initializer.
effects: ConfigEffect settings from the attribute (strict, speculate, effects(..)).
sync: boolA synchronous function (Phase II): statements that block on the outside world, or carry
#[psync::par], play the part of awaits, and levels run on threads.
Auto Trait Implementations§
impl Freeze for Scope
impl RefUnwindSafe for Scope
impl !Send for Scope
impl !Sync for Scope
impl Unpin for Scope
impl UnsafeUnpin for Scope
impl UnwindSafe for Scope
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