pub struct Git<'a> { /* private fields */ }
Implementations§
source§impl<'a> Git<'a>
impl<'a> Git<'a>
pub fn new(root: &'a Path) -> Self
pub fn root(&'a self) -> &'a Path
pub fn command(&self) -> Expression
pub fn command_parse(&self, arg_str: impl AsRef<str>) -> Expression
pub fn init(&self) -> Result<()>
pub fn config(&self) -> Result<Option<String>>
pub fn modules(&self) -> Result<Option<String>>
pub fn user_name(&self) -> Result<String>
pub fn user_email(&self) -> Result<String>
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Git<'a>
impl<'a> RefUnwindSafe for Git<'a>
impl<'a> Send for Git<'a>
impl<'a> Sync for Git<'a>
impl<'a> Unpin for Git<'a>
impl<'a> UnwindSafe for Git<'a>
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
)