pub enum RealizeError {
Invalid(EcoString),
}Expand description
An error that can occur in VirtualPath::realize.
Variants§
Invalid(EcoString)
A virtual path component was of a form that would be specially interpreted on the current platform as opposed to designating just a file or directory.
For example, this occurs when a path segments contains a drive letter
prefix on Windows (i.e. the virtual path /C:/System32/..) as Windows
interprets interior drive letters as resetting the path to the cwd (if
the cwd is on the current drive) or resetting the path to root (if the
cwd is on another drive).
Trait Implementations§
Source§impl Clone for RealizeError
impl Clone for RealizeError
Source§fn clone(&self) -> RealizeError
fn clone(&self) -> RealizeError
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 RealizeError
impl Debug for RealizeError
Source§impl Display for RealizeError
impl Display for RealizeError
impl Eq for RealizeError
Source§impl Error for RealizeError
impl Error for RealizeError
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 Hash for RealizeError
impl Hash for RealizeError
Source§impl PartialEq for RealizeError
impl PartialEq for RealizeError
Source§fn eq(&self, other: &RealizeError) -> bool
fn eq(&self, other: &RealizeError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for RealizeError
Auto Trait Implementations§
impl Freeze for RealizeError
impl RefUnwindSafe for RealizeError
impl Send for RealizeError
impl Sync for RealizeError
impl Unpin for RealizeError
impl UnsafeUnpin for RealizeError
impl UnwindSafe for RealizeError
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§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> 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