#[non_exhaustive]pub struct ImportSite {
pub node: NodeId,
pub scope: NodeId,
pub symbol: String,
pub binding: ImportBinding,
pub reach: BindingReach,
}Expand description
One import or re-export resolved to what it binds.
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.node: NodeIdId of the AST node holding the bound name.
scope: NodeIdId of the scope the binding is visible in.
symbol: StringThe local name the import binds.
binding: ImportBindingWhat module (and symbol, if any) that name is bound to.
reach: BindingReachWho can look that name up.
Trait Implementations§
Source§impl Clone for ImportSite
impl Clone for ImportSite
Source§impl Debug for ImportSite
impl Debug for ImportSite
impl Eq for ImportSite
Source§impl PartialEq for ImportSite
impl PartialEq for ImportSite
impl StructuralPartialEq for ImportSite
Auto Trait Implementations§
impl Forget for ImportSite
impl Freeze for ImportSite
impl RefUnwindSafe for ImportSite
impl Send for ImportSite
impl Sync for ImportSite
impl Unpin for ImportSite
impl UnsafeUnpin for ImportSite
impl UnwindSafe for ImportSite
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