pub enum ProjectPathError {
Empty,
Absolute,
ParentEscape,
}Expand description
Error returned when a path cannot be used as a project-relative dependency identity.
Variants§
Empty
The path has no dependency identity after normalization.
Absolute
The path is absolute or carries a platform root/drive prefix.
ParentEscape
The path climbs above the project root.
Trait Implementations§
Source§impl Clone for ProjectPathError
impl Clone for ProjectPathError
Source§fn clone(&self) -> ProjectPathError
fn clone(&self) -> ProjectPathError
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 ProjectPathError
impl Debug for ProjectPathError
Source§impl Display for ProjectPathError
impl Display for ProjectPathError
Source§impl Error for ProjectPathError
impl Error for ProjectPathError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for ProjectPathError
impl PartialEq for ProjectPathError
impl Copy for ProjectPathError
impl Eq for ProjectPathError
impl StructuralPartialEq for ProjectPathError
Auto Trait Implementations§
impl Freeze for ProjectPathError
impl RefUnwindSafe for ProjectPathError
impl Send for ProjectPathError
impl Sync for ProjectPathError
impl Unpin for ProjectPathError
impl UnsafeUnpin for ProjectPathError
impl UnwindSafe for ProjectPathError
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