pub struct RepoInfo {
pub root: PathBuf,
pub is_git: bool,
pub scope: Option<PathBuf>,
pub single_file: Option<PathBuf>,
}Expand description
Describes what the user-supplied path resolves to.
Fields§
§root: PathBufGit repo root (git mode) or canonical directory path (plain-dir mode).
is_git: boolWhether root is inside a git repository.
scope: Option<PathBuf>Subdirectory scope within the git repo (relative to root).
Only set when the user supplied a strict subdirectory of the repo root.
single_file: Option<PathBuf>When the user supplied a single file, its path relative to root.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RepoInfo
impl RefUnwindSafe for RepoInfo
impl Send for RepoInfo
impl Sync for RepoInfo
impl Unpin for RepoInfo
impl UnsafeUnpin for RepoInfo
impl UnwindSafe for RepoInfo
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more