pub struct CachedFile { /* private fields */ }Expand description
Cached file with lazy-parsed components.
Implementations§
Source§impl CachedFile
impl CachedFile
pub fn source(&self) -> &str
pub fn frontmatter(&self) -> &Result<Option<Frontmatter>, FrontmatterError>
pub fn headings(&self) -> &[Heading]
pub fn wikilinks(&self) -> &[WikilinkOccurrence]
pub fn classified_ranges(&self) -> &[ClassifiedRange]
pub fn block_ids(&self) -> &[BlockId]
Auto Trait Implementations§
impl !Freeze for CachedFile
impl !RefUnwindSafe for CachedFile
impl Send for CachedFile
impl !Sync for CachedFile
impl Unpin for CachedFile
impl UnsafeUnpin for CachedFile
impl !UnwindSafe for CachedFile
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