#[non_exhaustive]pub enum BadPath {
Empty,
Absolute,
Backslash,
Parent,
NotNormal,
}Expand description
Why a path handed to Layer::owned was refused: a layer’s paths are
relative to its root and /-separated, as every read names them.
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
The path is empty.
Absolute
The path starts at a root (/data/x.ron, C:/data/x.ron).
Backslash
The path has a backslash: paths are /-separated.
Parent
The path goes up a folder (..).
NotNormal
The path has an empty or . part (data//x.ron, ./x.ron,
data/), which no read names.
Trait Implementations§
impl Copy for BadPath
impl Eq for BadPath
Source§impl Error for BadPath
impl Error for BadPath
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()
impl StructuralPartialEq for BadPath
Auto Trait Implementations§
impl Freeze for BadPath
impl RefUnwindSafe for BadPath
impl Send for BadPath
impl Sync for BadPath
impl Unpin for BadPath
impl UnsafeUnpin for BadPath
impl UnwindSafe for BadPath
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