pub struct Search {
pub justfile: PathBuf,
pub working_directory: PathBuf,
}
Fieldsยง
ยงjustfile: PathBuf
ยงworking_directory: PathBuf
Implementationsยง
Sourceยงimpl Search
impl Search
Sourcepub fn find(
search_config: &SearchConfig,
invocation_directory: &Path,
) -> Result<Self, SearchError>
pub fn find( search_config: &SearchConfig, invocation_directory: &Path, ) -> Result<Self, SearchError>
Find justfile given search configuration and invocation directory
Sourcepub fn search_parent_directory(&self) -> Result<Self, SearchError>
pub fn search_parent_directory(&self) -> Result<Self, SearchError>
Find justfile starting from parent directory of current justfile
Sourcepub fn init(
search_config: &SearchConfig,
invocation_directory: &Path,
) -> Result<Self, SearchError>
pub fn init( search_config: &SearchConfig, invocation_directory: &Path, ) -> Result<Self, SearchError>
Get working directory and justfile path for newly-initialized justfile
Trait Implementationsยง
Auto Trait Implementationsยง
impl Freeze for Search
impl RefUnwindSafe for Search
impl Send for Search
impl Sync for Search
impl Unpin for Search
impl UnwindSafe for Search
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