pub struct FsLoader<'a> { /* private fields */ }Expand description
FsLoader is a loader without a cache: it reads every file from disk.
Implementations§
Trait Implementations§
Source§impl Loader for FsLoader<'_>
impl Loader for FsLoader<'_>
Source§fn document(&mut self, path: &RepoPath) -> Result<Option<Document>>
fn document(&mut self, path: &RepoPath) -> Result<Option<Document>>
document reads and parses one document. When a cache is behind the
loader, document returns None for an unchanged document whose
results the cache already holds, until a check needs the document
(CACHE-1_AC-20).Source§fn full_document(&mut self, path: &RepoPath) -> Result<Document>
fn full_document(&mut self, path: &RepoPath) -> Result<Document>
full_document reads and parses one document, whatever the cache holds.Source§fn additional(&mut self, path: &RepoPath) -> Result<Option<Source>>
fn additional(&mut self, path: &RepoPath) -> Result<Option<Source>>
additional reads the text of one additional file. When a cache is
behind the loader, additional returns None for an unchanged file
until a check needs the file (CACHE-1_AC-20).Auto Trait Implementations§
impl<'a> Forget for FsLoader<'a>
impl<'a> Freeze for FsLoader<'a>
impl<'a> Move for FsLoader<'a>
impl<'a> RefUnwindSafe for FsLoader<'a>
impl<'a> Send for FsLoader<'a>
impl<'a> Sync for FsLoader<'a>
impl<'a> Unpin for FsLoader<'a>
impl<'a> UnsafeUnpin for FsLoader<'a>
impl<'a> UnwindSafe for FsLoader<'a>
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