pub struct ImportInfo {
pub path: Vec<String>,
pub alias: Option<String>,
pub resolved_module: Option<ModuleId>,
pub symbol: Option<String>,
}Expand description
A resolved import from one module to another.
Fields§
§path: Vec<String>The import path segments (e.g., ["math", "linalg"]).
alias: Option<String>Optional alias (e.g., import math.linalg as ml).
resolved_module: Option<ModuleId>The resolved module ID this import refers to.
symbol: Option<String>The specific symbol being imported (last segment), if this is a symbol import rather than a module import.
Trait Implementations§
Source§impl Clone for ImportInfo
impl Clone for ImportInfo
Source§fn clone(&self) -> ImportInfo
fn clone(&self) -> ImportInfo
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ImportInfo
impl RefUnwindSafe for ImportInfo
impl Send for ImportInfo
impl Sync for ImportInfo
impl Unpin for ImportInfo
impl UnsafeUnpin for ImportInfo
impl UnwindSafe for ImportInfo
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