pub struct IndexedDocument { /* private fields */ }Implementations§
Source§impl OrgDocument
impl OrgDocument
pub fn parse( path: PathBuf, bytes: Vec<u8>, settings: &Settings, ) -> Result<Self, AgdError>
pub fn path(&self) -> &Path
pub fn source(&self) -> &str
pub fn headlines(&self) -> &[HeadlineSpan]
pub fn headline_at_line(&self, line: usize) -> Option<&HeadlineSpan>
pub fn todo_active(&self) -> &[String]
pub fn todo_done(&self) -> &[String]
pub fn todo_keywords(&self) -> &[TodoKeyword]
pub fn todo_keyword(&self, name: &str) -> Option<&TodoKeyword>
pub fn logging(&self) -> LogSettings
Sourcepub fn priorities(&self) -> PriorityRange
pub fn priorities(&self) -> PriorityRange
This file’s priority range: #+PRIORITIES, else the configured one.
Trait Implementations§
Source§impl Clone for OrgDocument
impl Clone for OrgDocument
Auto Trait Implementations§
impl Freeze for OrgDocument
impl RefUnwindSafe for OrgDocument
impl Send for OrgDocument
impl Sync for OrgDocument
impl Unpin for OrgDocument
impl UnsafeUnpin for OrgDocument
impl UnwindSafe for OrgDocument
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