pub enum ResolvedName {
Fqn(String),
Fallback {
namespaced: String,
global: String,
},
Special(&'static str),
Error,
}Expand description
Result of resolving a name against the current namespace and imports.
Variants§
Fqn(String)
Fully qualified name without a leading backslash.
Fallback
Unqualified function/const in a namespace with no matching import:
PHP tries namespaced first, then global.
Fields
Special(&'static str)
self, static or parent (lowercase); needs class context to resolve.
Error
Synthesised error-recovery name.
Trait Implementations§
Source§impl Clone for ResolvedName
impl Clone for ResolvedName
Source§impl Debug for ResolvedName
impl Debug for ResolvedName
impl Eq for ResolvedName
Source§impl PartialEq for ResolvedName
impl PartialEq for ResolvedName
impl StructuralPartialEq for ResolvedName
Auto Trait Implementations§
impl Freeze for ResolvedName
impl RefUnwindSafe for ResolvedName
impl Send for ResolvedName
impl Sync for ResolvedName
impl Unpin for ResolvedName
impl UnsafeUnpin for ResolvedName
impl UnwindSafe for ResolvedName
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