#[non_exhaustive]pub enum VPathError {
Empty,
Absolute,
EscapesRoot,
NulByte,
PlatformPrefix,
}Expand description
A reason a virtual path was rejected.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Empty
An empty string has no unambiguous virtual-path meaning.
Absolute
The path is absolute.
EscapesRoot
Normalization would leave the virtual workspace root.
NulByte
The path contains a NUL byte.
PlatformPrefix
The path starts with a platform-specific absolute prefix such as C:.
Trait Implementations§
Source§impl Clone for VPathError
impl Clone for VPathError
Source§fn clone(&self) -> VPathError
fn clone(&self) -> VPathError
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 moreimpl Copy for VPathError
Source§impl Debug for VPathError
impl Debug for VPathError
Source§impl Display for VPathError
impl Display for VPathError
impl Eq for VPathError
Source§impl Error for VPathError
impl Error for VPathError
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 VPathError
impl PartialEq for VPathError
impl StructuralPartialEq for VPathError
Auto Trait Implementations§
impl Freeze for VPathError
impl RefUnwindSafe for VPathError
impl Send for VPathError
impl Sync for VPathError
impl Unpin for VPathError
impl UnsafeUnpin for VPathError
impl UnwindSafe for VPathError
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