pub struct Sources<'a> {
pub workspace: &'a Path,
pub read_roots: &'a [PathBuf],
pub listing: &'a [PathBuf],
pub read: &'a dyn Fn(&Path) -> Result<String, String>,
}Expand description
Where cited files are looked for.
Fields§
§workspace: &'a PathThe run’s workspace; relative paths resolve here first.
read_roots: &'a [PathBuf]Read roots; relative paths resolve under each in turn.
listing: &'a [PathBuf]Absolute paths of the files in the workspace and read roots (git ls-files), for
citations that give only the tail of a path.
read: &'a dyn Fn(&Path) -> Result<String, String>Reads a file’s text.
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for Sources<'a>
impl<'a> !Send for Sources<'a>
impl<'a> !Sync for Sources<'a>
impl<'a> !UnwindSafe for Sources<'a>
impl<'a> Forget for Sources<'a>
impl<'a> Freeze for Sources<'a>
impl<'a> Move for Sources<'a>
impl<'a> Unpin for Sources<'a>
impl<'a> UnsafeUnpin for Sources<'a>where
&'a Path: UnsafeUnpin,
&'a [PathBuf]: UnsafeUnpin,
&'a dyn Fn(&Path) -> Result<String, String>: UnsafeUnpin,
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