pub enum Boundary {
Root,
Marker(&'static str),
}Expand description
Controls where an Ancestors walk stops.
The walk always starts at the current working directory and moves toward the filesystem root. The boundary determines where it ends.
Variants§
Root
Walk all the way to the filesystem root.
Marker(&'static str)
Walk until a directory is found that contains the named file or
subdirectory (e.g. ".git", "Cargo.toml").
The directory containing the marker is included in the search — it is typically the project root and a natural place for config files. If the marker is never found, the walk continues to the filesystem root.
Trait Implementations§
impl StructuralPartialEq for Boundary
Auto Trait Implementations§
impl Freeze for Boundary
impl RefUnwindSafe for Boundary
impl Send for Boundary
impl Sync for Boundary
impl Unpin for Boundary
impl UnsafeUnpin for Boundary
impl UnwindSafe for Boundary
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