pub struct RepoContext {
pub repo_root: PathBuf,
pub cwd: PathBuf,
pub base_name: String,
}Fields§
§repo_root: PathBuf§cwd: PathBuf§base_name: StringImplementations§
Source§impl RepoContext
impl RepoContext
pub fn project_name(&self) -> Result<String>
pub fn paths(&self, explicit_project: Option<&str>) -> Result<HandoffPaths>
pub fn refresh(&self, force: bool) -> Result<RefreshReport>
pub fn migrate_root_handoff(&self, target: &Path) -> Result<Option<PathBuf>>
pub fn working_tree_files(&self) -> Result<Vec<String>>
Trait Implementations§
Source§impl Clone for RepoContext
impl Clone for RepoContext
Source§fn clone(&self) -> RepoContext
fn clone(&self) -> RepoContext
Returns a duplicate of the value. Read more
1.0.0 · 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 RepoContext
impl RefUnwindSafe for RepoContext
impl Send for RepoContext
impl Sync for RepoContext
impl Unpin for RepoContext
impl UnsafeUnpin for RepoContext
impl UnwindSafe for RepoContext
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