pub struct Corpus {
pub populated_doc_roots: Vec<String>,
pub documents: Vec<TargetPath>,
pub spec_shaped: Vec<TargetPath>,
pub spec_without_rule_id: Vec<TargetPath>,
pub ordinal_named: Vec<TargetPath>,
pub records_outside_decisions: Vec<TargetPath>,
pub has_specs_directory: bool,
}Expand description
What the corpus looks like, as counts and paths a detector reads.
Fields§
§populated_doc_roots: Vec<String>Documentation roots at the top level that hold anything.
documents: Vec<TargetPath>Every durable document, relative to the target, sorted.
spec_shaped: Vec<TargetPath>Documents shaped like a specification of this convention.
spec_without_rule_id: Vec<TargetPath>Specification-shaped documents that define no rule identifier.
ordinal_named: Vec<TargetPath>Documents named by their position rather than their subject.
records_outside_decisions: Vec<TargetPath>Decision records outside a decisions directory.
has_specs_directory: boolWhether a specifications directory exists under a documentation root.
Implementations§
Source§impl Corpus
impl Corpus
Sourcepub const fn settled(&self) -> bool
pub const fn settled(&self) -> bool
Whether the target documents itself already.
Documents, not directories. A documentation root holding empty directories is a layout somebody started and not a corpus somebody wrote, and refusing to land beside it would refuse a repository that has written nothing.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Corpus
impl<'de> Deserialize<'de> for Corpus
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Corpus
impl StructuralPartialEq for Corpus
Auto Trait Implementations§
impl Freeze for Corpus
impl RefUnwindSafe for Corpus
impl Send for Corpus
impl Sync for Corpus
impl Unpin for Corpus
impl UnsafeUnpin for Corpus
impl UnwindSafe for Corpus
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.