pub struct Import<'a, S, P> {
pub parent: &'a P,
pub path: &'a S,
pub meta: &'a Option<Term<S>>,
}Expand description
Information to resolve module/data imports.
Fields§
§parent: &'a Pabsolute path of the module where the import/include directive appears
This is a path P, not a string S, because it usually does not appear in the source.
path: &'a Srelative path of the imported/included module, as given in the source
meta: &'a Option<Term<S>>metadata attached to the import/include directive
Implementations§
Auto Trait Implementations§
impl<'a, S, P> Freeze for Import<'a, S, P>
impl<'a, S, P> RefUnwindSafe for Import<'a, S, P>where
P: RefUnwindSafe,
S: RefUnwindSafe,
impl<'a, S, P> Send for Import<'a, S, P>
impl<'a, S, P> Sync for Import<'a, S, P>
impl<'a, S, P> Unpin for Import<'a, S, P>
impl<'a, S, P> UnwindSafe for Import<'a, S, P>where
P: RefUnwindSafe,
S: RefUnwindSafe,
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