pub struct ImportInfo {
pub raw_path: String,
pub alias: Option<String>,
pub resolved_path: Option<PathBuf>,
pub is_stdlib: bool,
}Expand description
Information about a single import
Fields§
§raw_path: String§alias: Option<String>§resolved_path: Option<PathBuf>§is_stdlib: boolTrait 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 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ImportInfo
impl Debug for ImportInfo
Source§impl From<&ImportStatement> for ImportInfo
impl From<&ImportStatement> for ImportInfo
Source§fn from(stmt: &ImportStatement) -> Self
fn from(stmt: &ImportStatement) -> Self
Converts to this type from the input type.
Auto 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