pub struct PythonModuleMutationFacts { /* private fields */ }Expand description
Complete syntax-only module mutation facts for one request or operation.
These facts retain no tree nodes, selected reads, source owners or resolved answers. Callers must pair them with the exact prepared-source bytes used for collection, and validate each actual owner’s source independently.
Implementations§
Source§impl PythonModuleMutationFacts
impl PythonModuleMutationFacts
Sourcepub fn collect_bounded(
root: Node<'_>,
source: &str,
scope_step: impl FnMut() -> bool,
) -> Option<Self>
pub fn collect_bounded( root: Node<'_>, source: &str, scope_step: impl FnMut() -> bool, ) -> Option<Self>
Collect all hazards before publishing facts. A stopped collection has no usable partial result, even if an earlier hazard already refused.
Sourcepub fn binding_unmutated_at_bounded(
&self,
root: Node<'_>,
name: &str,
reference: Node<'_>,
scope_step: impl FnMut() -> bool,
) -> Option<bool>
pub fn binding_unmutated_at_bounded( &self, root: Node<'_>, name: &str, reference: Node<'_>, scope_step: impl FnMut() -> bool, ) -> Option<bool>
Admit an actual read against the current prepared root and reference. The reference must belong to this root from the same prepared source. Earlier callable bodies can write; a later body cannot affect an immediate read except on a loop back-edge. Actual named global events remain file-wide barriers; read-only directives are not mutations.
Trait Implementations§
Auto Trait Implementations§
impl Forget for PythonModuleMutationFacts
impl Freeze for PythonModuleMutationFacts
impl Move for PythonModuleMutationFacts
impl RefUnwindSafe for PythonModuleMutationFacts
impl Send for PythonModuleMutationFacts
impl Sync for PythonModuleMutationFacts
impl Unpin for PythonModuleMutationFacts
impl UnsafeUnpin for PythonModuleMutationFacts
impl UnwindSafe for PythonModuleMutationFacts
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more