pub struct DirRepoPath { /* private fields */ }
Implementations§
Source§impl DirRepoPath
impl DirRepoPath
pub fn root() -> Self
pub fn is_root(&self) -> bool
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 contains_dir(&self, other: &DirRepoPath) -> bool
pub fn contains_file(&self, other: &FileRepoPath) -> bool
pub fn parent(&self) -> Option<DirRepoPath>
pub fn split(&self) -> Option<(DirRepoPath, DirRepoPathComponent)>
pub fn components(&self) -> &Vec<DirRepoPathComponent>
Trait Implementations§
Source§impl Clone for DirRepoPath
impl Clone for DirRepoPath
Source§fn clone(&self) -> DirRepoPath
fn clone(&self) -> DirRepoPath
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 DirRepoPath
impl Debug for DirRepoPath
Source§impl From<&str> for DirRepoPath
impl From<&str> for DirRepoPath
Source§impl Hash for DirRepoPath
impl Hash for DirRepoPath
Source§impl Ord for DirRepoPath
impl Ord for DirRepoPath
Source§fn cmp(&self, other: &DirRepoPath) -> Ordering
fn cmp(&self, other: &DirRepoPath) -> 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 DirRepoPath
impl PartialEq for DirRepoPath
Source§impl PartialOrd for DirRepoPath
impl PartialOrd for DirRepoPath
Source§impl RepoPathJoin<DirRepoPathComponent> for DirRepoPath
impl RepoPathJoin<DirRepoPathComponent> for DirRepoPath
type Result = DirRepoPath
fn join(&self, entry: &DirRepoPathComponent) -> DirRepoPath
Source§impl RepoPathJoin<FileRepoPathComponent> for DirRepoPath
impl RepoPathJoin<FileRepoPathComponent> for DirRepoPath
type Result = FileRepoPath
fn join(&self, entry: &FileRepoPathComponent) -> FileRepoPath
Source§impl RepoPathJoin<RepoPathComponent> for DirRepoPath
impl RepoPathJoin<RepoPathComponent> for DirRepoPath
impl Eq for DirRepoPath
impl StructuralPartialEq for DirRepoPath
Auto Trait Implementations§
impl Freeze for DirRepoPath
impl RefUnwindSafe for DirRepoPath
impl Send for DirRepoPath
impl Sync for DirRepoPath
impl Unpin for DirRepoPath
impl UnwindSafe for DirRepoPath
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