pub fn name(&self) -> Option<&str> {
        unsafe {
            crate::opt_bytes(self, raw::git_worktree_name(self.raw))
                .and_then(|s| str::from_utf8(s).ok())
        }
    }
/// Retrieves the name of the worktree
///
/// This is the name that can be passed to repo::Repository::find_worktree
/// to reopen the worktree. This is also the name that would appear in the
/// list returned by repo::Repository::worktrees
Retrieves the name of the worktree
This is the name that can be passed to repo::Repository::find_worktree
to reopen the worktree. This is also the name that would appear in the
list returned by repo::Repository::worktrees
Retrieves the name of the worktree This is the name that can be passed to repo :: Repository :: find_worktree to reopen the worktree . This is also the name that would appear in the list returned by repo :: Repository :: worktrees
pub fn name(&self) -> Option<&str> {
        unsafe {
            crate::opt_bytes(self, raw::git_worktree_name(self.raw))
                .and_then(|s| str::from_utf8(s).ok())
        }
    }
pub fn name ( & self ) -> Option < & str > { unsafe { crate :: opt_bytes ( self , raw :: git_worktree_name ( self . raw ) ) . and_then ( | s | str :: from_utf8 ( s ) . ok ( ) ) } }
Retrieves the name of the worktree
This is the name that can be passed to repo::Repository::find_worktree
to reopen the worktree.
Retrieves the name of the worktree This is the name that can be passed to repo :: Repository :: find_worktree to reopen the worktree .
&self
&self