Struct ProjectPath

Source
pub struct ProjectPath { /* private fields */ }
Expand description

Represents a path to a project

Implementations§

Source§

impl ProjectPath

Source

pub fn new(path: &str) -> &ProjectPath

Create a new path from a string

Source

pub fn is_empty(&self) -> bool

Checks whether this an empty path

Source

pub fn components(&self) -> PathComponents<'_>

Gets the components of the path

Trait Implementations§

Source§

impl AsRef<ProjectPath> for &str

Source§

fn as_ref(&self) -> &ProjectPath

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<ProjectPath> for ProjectPath

Source§

fn as_ref(&self) -> &ProjectPath

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<ProjectPath> for ProjectPathBuf

Source§

fn as_ref(&self) -> &ProjectPath

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl Borrow<ProjectPath> for ProjectPathBuf

Source§

fn borrow(&self) -> &ProjectPath

Immutably borrows from an owned value. Read more
Source§

impl Debug for ProjectPath

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl From<&ProjectPath> for ProjectPathBuf

Source§

fn from(value: &ProjectPath) -> ProjectPathBuf

Converts to this type from the input type.
Source§

impl Hash for ProjectPath

Source§

fn hash<__H>(&self, state: &mut __H)
where __H: Hasher,

Feeds this value into the given Hasher. Read more
Source§

impl<'a> IntoIterator for &'a ProjectPath

Source§

type Item = PathComponent<'a>

The type of the elements being iterated over.
Source§

type IntoIter = PathComponents<'a>

Which kind of iterator are we turning this into?
Source§

fn into_iter(self) -> <&'a ProjectPath as IntoIterator>::IntoIter

Creates an iterator from a value. Read more
Source§

impl PartialEq for ProjectPath

Source§

fn eq(&self, other: &ProjectPath) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl ToOwned for ProjectPath

Source§

type Owned = ProjectPathBuf

The resulting type after obtaining ownership.
Source§

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)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl Eq for ProjectPath

Source§

impl StructuralPartialEq for ProjectPath

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

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
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<T> InstanceOf for T
where T: Any + ?Sized,

Source§

fn instance_of<T>(&self) -> bool
where T: Any + ?Sized,