pub struct StoreView { /* private fields */ }Expand description
StoreView is a read-only view of the store file, for the documents that
the run reads only from the store. Its queries add to the cache’s query counter.
Trait Implementations§
Source§impl Fallback for StoreView
impl Fallback for StoreView
Source§fn ids(&self, knowledge: usize, id: &str) -> Vec<RepoPath>
fn ids(&self, knowledge: usize, id: &str) -> Vec<RepoPath>
ids returns the paths of the documents of knowledge that have
id.Source§fn ids_of_type(
&self,
knowledge: usize,
type_name: &str,
) -> Vec<(RepoPath, String)>
fn ids_of_type( &self, knowledge: usize, type_name: &str, ) -> Vec<(RepoPath, String)>
ids_of_type returns the path and id of each document of
knowledge whose type is type_name.Source§fn is_document(&self, path: &RepoPath) -> bool
fn is_document(&self, path: &RepoPath) -> bool
is_document reports whether path is a document of any store.Source§fn fields(&self, path: &RepoPath) -> Option<Fields>
fn fields(&self, path: &RepoPath) -> Option<Fields>
fields returns the fields of the document at path.Source§fn broken(&self, path: &RepoPath) -> bool
fn broken(&self, path: &RepoPath) -> bool
broken reports whether the document at path has no frontmatter, or
has frontmatter that fails to parse.Source§fn schema_meta(&self, path: &RepoPath) -> Option<SchemaMeta>
fn schema_meta(&self, path: &RepoPath) -> Option<SchemaMeta>
schema_meta returns what the store keeps about the schema file at
path.Auto Trait Implementations§
impl !Freeze for StoreView
impl !RefUnwindSafe for StoreView
impl !Send for StoreView
impl !Sync for StoreView
impl !UnwindSafe for StoreView
impl Forget for StoreView
impl Move for StoreView
impl Unpin for StoreView
impl UnsafeUnpin for StoreView
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