pub struct TargetPath(/* private fields */);Expand description
A path an operation may name: relative, inside the target, and ordinary.
Implementations§
Source§impl TargetPath
impl TargetPath
Sourcepub fn new(value: &str) -> Result<Self, TargetPathError>
pub fn new(value: &str) -> Result<Self, TargetPathError>
Validate one target-relative path.
§Errors
TargetPathError for an empty path, an absolute path, a path
that climbs out, a path carrying a NUL, or one with a trailing or
repeated separator. A plan that could name any of those is a plan
whose reach the type no longer bounds.
Trait Implementations§
Source§impl Clone for TargetPath
impl Clone for TargetPath
Source§fn clone(&self) -> TargetPath
fn clone(&self) -> TargetPath
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 TargetPath
impl Debug for TargetPath
Source§impl<'de> Deserialize<'de> for TargetPath
impl<'de> Deserialize<'de> for TargetPath
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for TargetPath
impl Display for TargetPath
impl Eq for TargetPath
Source§impl From<TargetPath> for String
impl From<TargetPath> for String
Source§fn from(value: TargetPath) -> Self
fn from(value: TargetPath) -> Self
Converts to this type from the input type.
Source§impl Hash for TargetPath
impl Hash for TargetPath
Source§impl Ord for TargetPath
impl Ord for TargetPath
Source§fn cmp(&self, other: &TargetPath) -> Ordering
fn cmp(&self, other: &TargetPath) -> Ordering
1.21.0 (const: unstable) · 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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for TargetPath
impl PartialEq for TargetPath
Source§impl PartialOrd for TargetPath
impl PartialOrd for TargetPath
Source§impl Serialize for TargetPath
impl Serialize for TargetPath
impl StructuralPartialEq for TargetPath
Auto Trait Implementations§
impl Freeze for TargetPath
impl RefUnwindSafe for TargetPath
impl Send for TargetPath
impl Sync for TargetPath
impl Unpin for TargetPath
impl UnsafeUnpin for TargetPath
impl UnwindSafe for TargetPath
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> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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> 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<I> IntoResettable<String> for I
impl<I> IntoResettable<String> for I
Source§fn into_resettable(self) -> Resettable<String>
fn into_resettable(self) -> Resettable<String>
Convert to the intended resettable type