pub struct ImportKey {
pub path: String,
pub dir: String,
}
Expand description
ImportKey identifies an imported package by import path and source directory (directory containing the file containing the import). In practice, the directory may always be the same, or may not matter. Given an (import path, directory), an importer must always return the same package (but given two different import paths, an importer may still return the same package by mapping them to the same package paths).
Fields§
§path: String
§dir: String
Implementations§
Trait Implementations§
Source§impl Ord for ImportKey
impl Ord for ImportKey
Source§impl PartialOrd for ImportKey
impl PartialOrd for ImportKey
impl Eq for ImportKey
impl StructuralPartialEq for ImportKey
Auto Trait Implementations§
impl Freeze for ImportKey
impl RefUnwindSafe for ImportKey
impl Send for ImportKey
impl Sync for ImportKey
impl Unpin for ImportKey
impl UnwindSafe for ImportKey
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