#[non_exhaustive]pub struct SymbolPop {
pub symbol: String,
pub precedence: i64,
pub definition: Option<Definition>,
pub import: Option<ImportBinding>,
}Expand description
A definition: a symbol popped off the stack, ending a reference’s search.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.symbol: StringThe defined symbol’s name.
precedence: i64Resolution order among competing pops; lower wins.
definition: Option<Definition>What this pop defines, when it is a true definition rather than a relay.
import: Option<ImportBinding>The import this definition binds, when it comes from an import.
Trait Implementations§
impl Eq for SymbolPop
impl StructuralPartialEq for SymbolPop
Auto Trait Implementations§
impl Forget for SymbolPop
impl Freeze for SymbolPop
impl RefUnwindSafe for SymbolPop
impl Send for SymbolPop
impl Sync for SymbolPop
impl Unpin for SymbolPop
impl UnsafeUnpin for SymbolPop
impl UnwindSafe for SymbolPop
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