pub struct ProjectTier {
pub base_files: Vec<TierFile>,
pub imports: Vec<TierFile>,
pub active_rules: Vec<TierFile>,
pub nested: Vec<TierFile>,
}Expand description
Rich project tier with all sub-collections preserved. Useful for the
/memory overlay and the ancestry-addendum subsystem.
Fields§
§base_files: Vec<TierFile>Files discovered by the ancestor walk (broad → narrow order).
imports: Vec<TierFile>Imports resolved from any walk / rule / nested file — surfaced for
provenance display; the bodies are already inlined in their owning
tier file via <!-- imported from … --> markers.
active_rules: Vec<TierFile>Path-glob-matched rules (loaded lazily on first matching path touch).
nested: Vec<TierFile>Files added on-demand mid-session by Read/Edit/Glob hooks.
Implementations§
Source§impl ProjectTier
impl ProjectTier
Sourcepub fn estimated_tokens(&self) -> usize
pub fn estimated_tokens(&self) -> usize
Total estimated tokens across every collection.
Sourcepub fn to_legacy_tier(&self) -> Option<TierFile>
pub fn to_legacy_tier(&self) -> Option<TierFile>
Concatenate all base files + always-active rules into a single body for
the legacy project: Option<TierFile> slot used by splice_into.
The first file’s path is used as the slot’s path for provenance.
Trait Implementations§
Source§impl Clone for ProjectTier
impl Clone for ProjectTier
Source§fn clone(&self) -> ProjectTier
fn clone(&self) -> ProjectTier
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ProjectTier
impl Debug for ProjectTier
Source§impl Default for ProjectTier
impl Default for ProjectTier
Source§fn default() -> ProjectTier
fn default() -> ProjectTier
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ProjectTier
impl RefUnwindSafe for ProjectTier
impl Send for ProjectTier
impl Sync for ProjectTier
impl Unpin for ProjectTier
impl UnsafeUnpin for ProjectTier
impl UnwindSafe for ProjectTier
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