pub struct Repo { /* private fields */ }
Implementations§
source§impl Repo
impl Repo
pub fn from_path(path: impl Into<PathBuf>) -> Self
pub fn checkouts_dir(checkout: impl AsRef<Path>) -> Result<Self, NoHomeDir>
pub fn path(&self) -> &Path
pub fn git(&self) -> Git<'_>
pub fn status(&self) -> Result<Status, Error>
pub fn latest_subject(&self) -> Result<String, Error>
pub fn latest_hash(&self) -> Result<String, Error>
pub fn update(&self, url: impl AsRef<OsStr>, branch: &str) -> Result<(), Error>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Repo
impl RefUnwindSafe for Repo
impl Send for Repo
impl Sync for Repo
impl Unpin for Repo
impl UnwindSafe for Repo
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)