#[non_exhaustive]pub struct GraphContext {
pub workspace_root: Arc<Path>,
pub max_module_depth: u32,
pub infer_dependencies: bool,
pub max_expansion_per_resource: u32,
}Expand description
Per-build context: workspace root, recursion / expansion caps.
infer_dependencies is reserved for Phase 8 (edge collection); for
Phase 5 it has no effect.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.workspace_root: Arc<Path>Canonical workspace root (absolute path). All module sources must resolve underneath this.
max_module_depth: u32Maximum nested-module recursion depth (per I-GRAPH-4).
infer_dependencies: boolReserved for Phase 8 (edge collection). Phase 5 ignores it.
max_expansion_per_resource: u32count / for_each expansion cap. Spec 15 § 3.3 pins 1024 as the
default; the cap collapses to a template row + a diagnostic when
exceeded.
Implementations§
Trait Implementations§
Source§impl Clone for GraphContext
impl Clone for GraphContext
Source§fn clone(&self) -> GraphContext
fn clone(&self) -> GraphContext
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 moreAuto Trait Implementations§
impl Freeze for GraphContext
impl RefUnwindSafe for GraphContext
impl Send for GraphContext
impl Sync for GraphContext
impl Unpin for GraphContext
impl UnsafeUnpin for GraphContext
impl UnwindSafe for GraphContext
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