pub struct ContentIndex { /* private fields */ }Expand description
Optional derived-data tier owned by an index only after analysis is enabled.
The tier holds records of exactly one ContentTierIdentity: preparing it for another
identity clears it, and a record of another identity is refused. So every record the
tier holds answers the request it was prepared for, and none answers any other.
Implementations§
Source§impl ContentIndex
impl ContentIndex
Sourcepub fn identity(&self) -> Option<&ContentTierIdentity>
pub fn identity(&self) -> Option<&ContentTierIdentity>
The identity every record in this tier was produced under, even when the tree is empty.
Sourcepub fn profile(&self) -> Option<AnalysisSet>
pub fn profile(&self) -> Option<AnalysisSet>
Analyzer set this derived tier holds records for, even when the tree is empty.
Sourcepub fn provenance(&self) -> Option<ContentProvenance>
pub fn provenance(&self) -> Option<ContentProvenance>
Analyzer, rule, and option identity every record in this derived tier carries.
Sourcepub fn file(&self, path: &Path) -> Option<&FileAnalysis>
pub fn file(&self, path: &Path) -> Option<&FileAnalysis>
Borrow one file’s analysis.
Sourcepub fn rollup(&self, path: &Path) -> Option<&ContentRollUp>
pub fn rollup(&self, path: &Path) -> Option<&ContentRollUp>
Borrow a directory’s precomputed subtree rollup.
Trait Implementations§
Source§impl Clone for ContentIndex
impl Clone for ContentIndex
Source§impl Debug for ContentIndex
impl Debug for ContentIndex
Source§impl Default for ContentIndex
impl Default for ContentIndex
impl Eq for ContentIndex
Source§impl PartialEq for ContentIndex
impl PartialEq for ContentIndex
impl StructuralPartialEq for ContentIndex
Auto Trait Implementations§
impl Freeze for ContentIndex
impl RefUnwindSafe for ContentIndex
impl Send for ContentIndex
impl Sync for ContentIndex
impl Unpin for ContentIndex
impl UnsafeUnpin for ContentIndex
impl UnwindSafe for ContentIndex
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