pub struct RepoPath { /* private fields */ }
Implementations§
Source§impl RepoPath
impl RepoPath
pub fn root() -> Self
pub fn new(dir: DirRepoPath, basename: RepoPathComponent) -> Self
Sourcepub fn to_internal_string(&self) -> String
pub fn to_internal_string(&self) -> String
The full string form used internally, not for presenting to users (where we may want to use the platform’s separator).
pub fn to_file_repo_path(&self) -> FileRepoPath
pub fn to_dir_repo_path(&self) -> DirRepoPath
pub fn is_root(&self) -> bool
pub fn dir(&self) -> Option<&DirRepoPath>
pub fn split(&self) -> Option<(&DirRepoPath, &RepoPathComponent)>
Trait Implementations§
Source§impl Ord for RepoPath
impl Ord for RepoPath
Source§impl PartialOrd for RepoPath
impl PartialOrd for RepoPath
impl Eq for RepoPath
impl StructuralPartialEq for RepoPath
Auto Trait Implementations§
impl Freeze for RepoPath
impl RefUnwindSafe for RepoPath
impl Send for RepoPath
impl Sync for RepoPath
impl Unpin for RepoPath
impl UnwindSafe for RepoPath
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