Skip to main content

Index

Struct Index 

Source
pub struct Index { /* private fields */ }

Implementations§

Source§

impl Index

Source

pub fn invalid_relevant_diagnostic( &self, unit_id: &str, ) -> Result<Option<String>>

Source

pub fn dependency_providers( &self, unit_id: &str, parent_id: Option<&str>, required_artifacts: &[String], ) -> Result<Vec<DepProviderRow>>

Source

pub fn child_summaries(&self, parent_id: &str) -> Result<Vec<ChildSummaryRow>>

Source§

impl Index

Source

pub fn rebuild_from_canonical_files( &mut self, mana_dir: &Path, ) -> Result<RebuildReport>

Source§

impl Index

Source

pub fn open(mana_dir: &Path) -> Result<Self>

Source

pub fn rebuild(mana_dir: &Path) -> Result<RebuildReport>

Source

pub fn database_path(mana_dir: &Path) -> PathBuf

Source

pub fn schema_version(&self) -> Result<i64>

Source

pub fn is_stale(&self) -> Result<bool>

Source

pub fn mark_stale(&self, reason: &str) -> Result<()>

Source

pub fn mark_fresh(&self) -> Result<()>

Source

pub fn record_source_file(&self, metadata: &SourceFileMetadata) -> Result<()>

Source

pub fn source_freshness( &self, path: &str, hash: Option<&str>, mtime: Option<i64>, size: Option<i64>, ) -> Result<Freshness>

Source

pub fn source_status(&self, path: &str) -> Result<Option<String>>

Source

pub fn unit_exists(&self, id: &str) -> Result<bool>

Source

pub fn diagnostic_count(&self) -> Result<usize>

Source

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.