pub struct FileRepoPath { /* private fields */ }
Implementations§
Source§impl FileRepoPath
impl FileRepoPath
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 dir(&self) -> &DirRepoPath
pub fn split(&self) -> (&DirRepoPath, &FileRepoPathComponent)
pub fn to_repo_path(&self) -> RepoPath
Trait Implementations§
Source§impl Clone for FileRepoPath
impl Clone for FileRepoPath
Source§fn clone(&self) -> FileRepoPath
fn clone(&self) -> FileRepoPath
Returns a duplicate 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 FileRepoPath
impl Debug for FileRepoPath
Source§impl From<&str> for FileRepoPath
impl From<&str> for FileRepoPath
Source§impl Hash for FileRepoPath
impl Hash for FileRepoPath
Source§impl Ord for FileRepoPath
impl Ord for FileRepoPath
Source§fn cmp(&self, other: &FileRepoPath) -> Ordering
fn cmp(&self, other: &FileRepoPath) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for FileRepoPath
impl PartialEq for FileRepoPath
Source§impl PartialOrd for FileRepoPath
impl PartialOrd for FileRepoPath
impl Eq for FileRepoPath
impl StructuralPartialEq for FileRepoPath
Auto Trait Implementations§
impl Freeze for FileRepoPath
impl RefUnwindSafe for FileRepoPath
impl Send for FileRepoPath
impl Sync for FileRepoPath
impl Unpin for FileRepoPath
impl UnwindSafe for FileRepoPath
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