pub struct File<C, P> {
pub code: C,
pub path: P,
}
Expand description
Contents C
and path P
of a (module) file.
This is useful for creating precise error messages.
Fields§
§code: C
contents of the file
path: P
path of the file
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<C, P> Freeze for File<C, P>
impl<C, P> RefUnwindSafe for File<C, P>where
C: RefUnwindSafe,
P: RefUnwindSafe,
impl<C, P> Send for File<C, P>
impl<C, P> Sync for File<C, P>
impl<C, P> Unpin for File<C, P>
impl<C, P> UnwindSafe for File<C, P>where
C: UnwindSafe,
P: UnwindSafe,
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