pub struct Walker<'a> { /* private fields */ }Expand description
Recursive walker. Composes a PackLoader (for manifests) with a
GitBackend (for child hydration).
The walker owns no state across calls: each invocation of Walker::walk
produces a fresh PackGraph and leaves no footprint.
Implementations§
Source§impl<'a> Walker<'a>
impl<'a> Walker<'a>
Sourcepub fn new(
loader: &'a dyn PackLoader,
backend: &'a dyn GitBackend,
workspace: PathBuf,
) -> Self
pub fn new( loader: &'a dyn PackLoader, backend: &'a dyn GitBackend, workspace: PathBuf, ) -> Self
Construct a new walker.
workspace is the directory under which child packs will be cloned,
using each ChildRef::effective_path as the sub-directory name.
Sourcepub fn with_ref_override(self, ref: Option<String>) -> Self
pub fn with_ref_override(self, ref: Option<String>) -> Self
Set a global ref override applied to every child pack.
Surfaced as grex sync --ref <sha|branch|tag> (M4-D). The override
replaces each child’s declared ref in its parent manifest. An
empty string is treated as “no override” — callers should reject
empty values at the CLI layer before reaching this point.
Auto Trait Implementations§
impl<'a> Freeze for Walker<'a>
impl<'a> !RefUnwindSafe for Walker<'a>
impl<'a> Send for Walker<'a>
impl<'a> Sync for Walker<'a>
impl<'a> Unpin for Walker<'a>
impl<'a> UnsafeUnpin for Walker<'a>
impl<'a> !UnwindSafe for Walker<'a>
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