pub struct ProjectPath { /* private fields */ }
Expand description
Represents a path to a project
Implementations§
Source§impl ProjectPath
impl ProjectPath
Sourcepub fn new(path: &str) -> &ProjectPath
pub fn new(path: &str) -> &ProjectPath
Create a new path from a string
Sourcepub fn components(&self) -> PathComponents<'_> ⓘ
pub fn components(&self) -> PathComponents<'_> ⓘ
Gets the components of the path
Trait Implementations§
Source§impl AsRef<ProjectPath> for &str
impl AsRef<ProjectPath> for &str
Source§fn as_ref(&self) -> &ProjectPath
fn as_ref(&self) -> &ProjectPath
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl AsRef<ProjectPath> for ProjectPath
impl AsRef<ProjectPath> for ProjectPath
Source§fn as_ref(&self) -> &ProjectPath
fn as_ref(&self) -> &ProjectPath
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl AsRef<ProjectPath> for ProjectPathBuf
impl AsRef<ProjectPath> for ProjectPathBuf
Source§fn as_ref(&self) -> &ProjectPath
fn as_ref(&self) -> &ProjectPath
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Borrow<ProjectPath> for ProjectPathBuf
impl Borrow<ProjectPath> for ProjectPathBuf
Source§fn borrow(&self) -> &ProjectPath
fn borrow(&self) -> &ProjectPath
Immutably borrows from an owned value. Read more
Source§impl Debug for ProjectPath
impl Debug for ProjectPath
Source§impl From<&ProjectPath> for ProjectPathBuf
impl From<&ProjectPath> for ProjectPathBuf
Source§fn from(value: &ProjectPath) -> ProjectPathBuf
fn from(value: &ProjectPath) -> ProjectPathBuf
Converts to this type from the input type.
Source§impl Hash for ProjectPath
impl Hash for ProjectPath
Source§impl<'a> IntoIterator for &'a ProjectPath
impl<'a> IntoIterator for &'a ProjectPath
Source§type Item = PathComponent<'a>
type Item = PathComponent<'a>
The type of the elements being iterated over.
Source§type IntoIter = PathComponents<'a>
type IntoIter = PathComponents<'a>
Which kind of iterator are we turning this into?
Source§fn into_iter(self) -> <&'a ProjectPath as IntoIterator>::IntoIter
fn into_iter(self) -> <&'a ProjectPath as IntoIterator>::IntoIter
Creates an iterator from a value. Read more
Source§impl PartialEq for ProjectPath
impl PartialEq for ProjectPath
Source§impl ToOwned for ProjectPath
impl ToOwned for ProjectPath
Source§type Owned = ProjectPathBuf
type Owned = ProjectPathBuf
The resulting type after obtaining ownership.
Source§fn to_owned(&self) -> <ProjectPath as ToOwned>::Owned
fn to_owned(&self) -> <ProjectPath as ToOwned>::Owned
Creates owned data from borrowed data, usually by cloning. Read more
1.63.0 · Source§fn clone_into(&self, target: &mut Self::Owned)
fn clone_into(&self, target: &mut Self::Owned)
Uses borrowed data to replace owned data, usually by cloning. Read more
impl Eq for ProjectPath
impl StructuralPartialEq for ProjectPath
Auto Trait Implementations§
impl Freeze for ProjectPath
impl RefUnwindSafe for ProjectPath
impl Send for ProjectPath
impl !Sized for ProjectPath
impl Sync for ProjectPath
impl Unpin for ProjectPath
impl UnwindSafe for ProjectPath
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
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.