pub struct WorkspaceIndex { /* private fields */ }Implementations§
Source§impl WorkspaceIndex
impl WorkspaceIndex
pub fn load(settings: Settings) -> Result<Self, AgdError>
Sourcepub fn skipped_files(&self) -> impl Iterator<Item = (&Path, &str)>
pub fn skipped_files(&self) -> impl Iterator<Item = (&Path, &str)>
Agenda files left out of the index, with the reason (currently only non-UTF-8 content).
pub fn roots(&self) -> &RootSet
pub fn settings(&self) -> &Settings
pub fn refresh_path(&mut self, path: &Path) -> Result<(), AgdError>
pub fn documents(&self) -> impl Iterator<Item = &OrgDocument>
pub fn items(&self) -> impl Iterator<Item = &Item>
pub fn duplicate_ids(&self) -> impl Iterator<Item = (&str, &[(PathBuf, usize)])>
pub fn document(&self, path: &Path) -> Option<&OrgDocument>
pub fn resolve( &self, item_ref: &str, ) -> Result<(&OrgDocument, &HeadlineSpan), AgdError>
Trait Implementations§
Source§impl Clone for WorkspaceIndex
impl Clone for WorkspaceIndex
Auto Trait Implementations§
impl Freeze for WorkspaceIndex
impl RefUnwindSafe for WorkspaceIndex
impl Send for WorkspaceIndex
impl Sync for WorkspaceIndex
impl Unpin for WorkspaceIndex
impl UnsafeUnpin for WorkspaceIndex
impl UnwindSafe for WorkspaceIndex
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