Struct notedown_rt::VMFileSystem
source · [−]pub struct VMFileSystem {
pub workspace_root: Option<Url>,
pub cache: DashMap<Url, NoteDocument>,
}Fields
workspace_root: Option<Url>cache: DashMap<Url, NoteDocument>Implementations
sourceimpl VMFileSystem
impl VMFileSystem
pub const NOTEDOWN_ROOT: &'static str = "NOTEDOWN_ROOT"
pub fn set_pkg_root<P: AsRef<Path>>(path: P) -> Result<()>
pub fn get_pkg_root() -> Result<PathBuf>
sourceimpl VMFileSystem
impl VMFileSystem
pub fn find_git_root(base: &Path) -> Result<PathBuf>
pub fn find_git_repo(base: &Path) -> Result<Repository>
sourceimpl VMFileSystem
impl VMFileSystem
pub fn new(url: Url) -> VMFileSystem
pub fn set_workspace(&mut self, url: Url)
pub fn clear_cache(&mut self)
sourceimpl VMFileSystem
impl VMFileSystem
sourceimpl VMFileSystem
impl VMFileSystem
sourcepub async fn load_local_url(&mut self, url: &Url) -> Result<()>
pub async fn load_local_url(&mut self, url: &Url) -> Result<()>
add a file url to resolve
pub async fn load_pattern_text(&mut self, patterns: &str) -> Result<()>
pub async fn load_pattern(&mut self, patterns: &GlobSet)
Trait Implementations
sourceimpl Debug for VMFileSystem
impl Debug for VMFileSystem
Auto Trait Implementations
impl !RefUnwindSafe for VMFileSystem
impl Send for VMFileSystem
impl Sync for VMFileSystem
impl Unpin for VMFileSystem
impl !UnwindSafe for VMFileSystem
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more