pub struct Scope { /* private fields */ }Expand description
TLC’s Context of a role (see the module documentation). Cheap to clone.
Implementations§
Source§impl Scope
impl Scope
Sourcepub fn has_substitutions(&self) -> bool
pub fn has_substitutions(&self) -> bool
Whether this context retains an INSTANCE substitution. Temporal argument admission uses this to preserve the pinned reference’s explicit refusal for exported parameterized INSTANCE formulas.
Sourcepub fn same_analysis_context(&self, other: &Self) -> bool
pub fn same_analysis_context(&self, other: &Self) -> bool
Whether two scopes retain the same analysis environment owners.
This is an identity test for active-walk cycle detection only. It is not
semantic scope equality, an atom/cache key, or an admission certificate.
A negative answer does not prove inequivalence. Dynamic @ contexts
return false without inspecting, comparing or calling their values.
let clone = scope.clone();
let same_owner = scope.same_analysis_context(&clone);Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Scope
impl !UnwindSafe for Scope
impl Forget for Scope
impl Freeze for Scope
impl Move for Scope
impl Send for Scope
impl Sync for Scope
impl Unpin for Scope
impl UnsafeUnpin 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