pub struct Compartment {
pub label: String,
pub paths: Vec<PathBuf>,
pub estimated_loc: usize,
}Expand description
A logical subunit of a project for compartmentalized analysis.
Large projects are split into compartments so that each analysis pass operates on a bounded slice of the source tree, keeping within model context-window limits.
Fields§
§label: StringHuman-readable label (e.g. "yh-core", "yh-cli + yh-mcp").
paths: Vec<PathBuf>Relative paths from project root to the directories this compartment covers.
estimated_loc: usizeEstimated lines of source code.
Trait Implementations§
Source§impl Clone for Compartment
impl Clone for Compartment
Source§fn clone(&self) -> Compartment
fn clone(&self) -> Compartment
Returns a duplicate of the value. Read more
1.0.0 · 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 Compartment
impl Debug for Compartment
Source§impl<'de> Deserialize<'de> for Compartment
impl<'de> Deserialize<'de> for Compartment
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
Auto Trait Implementations§
impl Freeze for Compartment
impl RefUnwindSafe for Compartment
impl Send for Compartment
impl Sync for Compartment
impl Unpin for Compartment
impl UnsafeUnpin for Compartment
impl UnwindSafe for Compartment
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