#[non_exhaustive]pub struct ImportBinding {
pub module_stem: String,
pub source_symbol: Option<String>,
pub relative_level: u32,
pub binds_module: bool,
}Expand description
How an import’s SymbolPop binds the module it imports from.
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.module_stem: StringThe imported module’s own name (the last path segment).
source_symbol: Option<String>The symbol imported from that module, when it names one.
relative_level: u32How many parent directories a relative import climbs.
binds_module: boolWhether the whole module (not just one symbol) is bound.
Trait Implementations§
Source§impl Clone for ImportBinding
impl Clone for ImportBinding
Source§impl Debug for ImportBinding
impl Debug for ImportBinding
impl Eq for ImportBinding
Source§impl PartialEq for ImportBinding
impl PartialEq for ImportBinding
impl StructuralPartialEq for ImportBinding
Auto Trait Implementations§
impl Forget for ImportBinding
impl Freeze for ImportBinding
impl RefUnwindSafe for ImportBinding
impl Send for ImportBinding
impl Sync for ImportBinding
impl Unpin for ImportBinding
impl UnsafeUnpin for ImportBinding
impl UnwindSafe for ImportBinding
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