pub enum SourceCallBinding {
LocalDeclaration(usize),
LocalDeclarations(Arc<[usize]>),
Qualified(ImportReference),
RustPath(SourceRustCall),
Imported {
import: usize,
reference: usize,
member: Option<String>,
rust_toolchain: Option<Box<ImportReference>>,
},
Shadowed,
Unresolved,
PhpNamespace,
}Expand description
Static binding selected at one call site by its grammar owner.
Variants§
LocalDeclaration(usize)
Exactly one declaration in this parser graph is lexically visible.
LocalDeclarations(Arc<[usize]>)
Several visible declarations remain possible, shared without per-call copies.
Qualified(ImportReference)
An AST-qualified Rust anchor or unshadowed toolchain module owns this path.
RustPath(SourceRustCall)
An AST-proven Rust module or explicit crate-relative path owns this call.
Imported
A particular visible import binding owns this call.
Fields
§
rust_toolchain: Option<Box<ImportReference>>Source-proven toolchain identity; never inferred from the alias spelling.
Shadowed
A parameter, local value or not-yet-initialized binding hides a declaration.
Unresolved
Source does not establish a static declaration or visible import target.
PhpNamespace
The existing PHP namespace owner supplies its separately validated local rules.
Trait Implementations§
Source§impl Clone for SourceCallBinding
impl Clone for SourceCallBinding
Source§fn clone(&self) -> SourceCallBinding
fn clone(&self) -> SourceCallBinding
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SourceCallBinding
impl Debug for SourceCallBinding
impl Eq for SourceCallBinding
Source§impl PartialEq for SourceCallBinding
impl PartialEq for SourceCallBinding
Source§fn eq(&self, other: &SourceCallBinding) -> bool
fn eq(&self, other: &SourceCallBinding) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SourceCallBinding
Auto Trait Implementations§
impl Freeze for SourceCallBinding
impl RefUnwindSafe for SourceCallBinding
impl Send for SourceCallBinding
impl Sync for SourceCallBinding
impl Unpin for SourceCallBinding
impl UnsafeUnpin for SourceCallBinding
impl UnwindSafe for SourceCallBinding
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.