pub struct RootSet { /* private fields */ }Implementations§
Source§impl RootSet
impl RootSet
Sourcepub fn new(roots: &[String], agenda: &[String]) -> Result<Self, AgdError>
pub fn new(roots: &[String], agenda: &[String]) -> Result<Self, AgdError>
roots are the only directories agd may read or write; agenda
holds the agenda file patterns (files, directories or globs).
pub fn roots(&self) -> &[PathBuf]
pub fn contains(&self, path: &Path) -> bool
pub fn resolve_read(&self, requested: &Path) -> Result<PathBuf, AgdError>
pub fn resolve_write( &self, requested: &Path, create: bool, ) -> Result<PathBuf, AgdError>
pub fn agenda_files(&self) -> Result<Vec<PathBuf>, AgdError>
pub fn all_org_files(&self) -> Result<Vec<PathBuf>, AgdError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RootSet
impl RefUnwindSafe for RootSet
impl Send for RootSet
impl Sync for RootSet
impl Unpin for RootSet
impl UnsafeUnpin for RootSet
impl UnwindSafe for RootSet
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