pub struct Repo { /* private fields */ }
Expand description
Repo represents a local git repository
Implementations§
Source§impl Repo
impl Repo
pub fn new() -> Self
pub fn with_current_branch(&mut self, branch: &str)
pub fn with_status(&mut self, dirty: bool)
pub fn with_title(&mut self, title: &str)
pub fn with_branch(&mut self, branch: &str)
pub fn with_last_commit_message(&mut self, message: &str)
pub fn current_branch(&self) -> &str
pub fn dirty(&self) -> bool
pub fn title(&self) -> &str
pub fn last_commit_message(&self) -> &str
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