pub struct Resolved {
pub name: String,
pub source: String,
}Expand description
What a host answers a module spec with: the module’s canonical name and its source.
The name is the identity of the module, and the const stage keys instances on it, so a resolver has to canonicalize: every spec that reaches one module must come back with one name. For a path resolver that is the resolved real path — the same thing it compares against its search root.
Fields§
§name: StringOne name per module, however many specs reach it.
source: StringThe module’s Elly source.
Auto Trait Implementations§
impl Freeze for Resolved
impl RefUnwindSafe for Resolved
impl Send for Resolved
impl Sync for Resolved
impl Unpin for Resolved
impl UnsafeUnpin for Resolved
impl UnwindSafe for Resolved
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