pub struct ProjectPathBuf { /* private fields */ }
Expand description
An owned version of the project path
Implementations§
Source§impl ProjectPathBuf
impl ProjectPathBuf
Sourcepub fn new(path: String) -> ProjectPathBuf
pub fn new(path: String) -> ProjectPathBuf
creates a new project path
Methods from Deref<Target = ProjectPath>§
Sourcepub fn components(&self) -> PathComponents<'_> ⓘ
pub fn components(&self) -> PathComponents<'_> ⓘ
Gets the components of the path
Trait Implementations§
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 Clone for ProjectPathBuf
impl Clone for ProjectPathBuf
Source§fn clone(&self) -> ProjectPathBuf
fn clone(&self) -> ProjectPathBuf
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ProjectPathBuf
impl Debug for ProjectPathBuf
Source§impl Deref for ProjectPathBuf
impl Deref for ProjectPathBuf
Source§type Target = ProjectPath
type Target = ProjectPath
The resulting type after dereferencing.
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 From<ProjectId> for ProjectPathBuf
impl From<ProjectId> for ProjectPathBuf
Source§fn from(value: ProjectId) -> ProjectPathBuf
fn from(value: ProjectId) -> ProjectPathBuf
Converts to this type from the input type.
Source§impl<S> From<S> for ProjectPathBuf
impl<S> From<S> for ProjectPathBuf
Source§fn from(value: S) -> ProjectPathBuf
fn from(value: S) -> ProjectPathBuf
Converts to this type from the input type.
Source§impl Hash for ProjectPathBuf
impl Hash for ProjectPathBuf
Source§impl PartialEq for ProjectPathBuf
impl PartialEq for ProjectPathBuf
impl Eq for ProjectPathBuf
impl StructuralPartialEq for ProjectPathBuf
Auto Trait Implementations§
impl Freeze for ProjectPathBuf
impl RefUnwindSafe for ProjectPathBuf
impl Send for ProjectPathBuf
impl Sync for ProjectPathBuf
impl Unpin for ProjectPathBuf
impl UnwindSafe for ProjectPathBuf
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.Source§impl<T> InstanceOf for T
impl<T> InstanceOf for T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more