pub struct Index { /* private fields */ }Implementations§
Source§impl Index
impl Index
pub fn invalid_relevant_diagnostic( &self, unit_id: &str, ) -> Result<Option<String>>
pub fn dependency_providers( &self, unit_id: &str, parent_id: Option<&str>, required_artifacts: &[String], ) -> Result<Vec<DepProviderRow>>
pub fn child_summaries(&self, parent_id: &str) -> Result<Vec<ChildSummaryRow>>
Source§impl Index
impl Index
pub fn rebuild_from_canonical_files( &mut self, mana_dir: &Path, ) -> Result<RebuildReport>
Source§impl Index
impl Index
pub fn open(mana_dir: &Path) -> Result<Self>
pub fn rebuild(mana_dir: &Path) -> Result<RebuildReport>
pub fn database_path(mana_dir: &Path) -> PathBuf
pub fn schema_version(&self) -> Result<i64>
pub fn is_stale(&self) -> Result<bool>
pub fn mark_stale(&self, reason: &str) -> Result<()>
pub fn mark_fresh(&self) -> Result<()>
pub fn record_source_file(&self, metadata: &SourceFileMetadata) -> Result<()>
pub fn source_freshness( &self, path: &str, hash: Option<&str>, mtime: Option<i64>, size: Option<i64>, ) -> Result<Freshness>
pub fn source_status(&self, path: &str) -> Result<Option<String>>
pub fn unit_exists(&self, id: &str) -> Result<bool>
pub fn diagnostic_count(&self) -> Result<usize>
pub fn diagnostics(&self) -> Result<Vec<DiagnosticRow>>
Auto Trait Implementations§
impl !Freeze for Index
impl !RefUnwindSafe for Index
impl Send for Index
impl !Sync for Index
impl Unpin for Index
impl UnsafeUnpin for Index
impl !UnwindSafe for Index
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