pub struct Filesystem { /* private fields */ }
Implementations§
Source§impl Filesystem
impl Filesystem
pub fn new() -> Result<Self>
pub fn git_ai_hook_bin_path(&self) -> Result<File>
pub fn git_hooks_path(&self) -> Dir
pub fn prepare_commit_msg_path(&self) -> Result<File>
Trait Implementations§
Source§impl Clone for Filesystem
impl Clone for Filesystem
Source§fn clone(&self) -> Filesystem
fn clone(&self) -> Filesystem
Returns a copy 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 moreSource§impl Debug for Filesystem
impl Debug for Filesystem
Source§impl From<Filesystem> for Result<Filesystem>
impl From<Filesystem> for Result<Filesystem>
Source§fn from(filesystem: Filesystem) -> Result<Filesystem>
fn from(filesystem: Filesystem) -> Result<Filesystem>
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Filesystem
impl RefUnwindSafe for Filesystem
impl Send for Filesystem
impl Sync for Filesystem
impl Unpin for Filesystem
impl UnwindSafe for Filesystem
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