pub enum ExpandPathError {
LexerError {
path: String,
source: ExpandPathLexerError,
},
IdentifierExpandError {
path: String,
identifier: String,
},
UnknownHome,
UnknownCwd,
EmptyPathError,
NotAbsoluteHome(String),
NotAbsoluteCwd(String),
}Variants§
LexerError
IdentifierExpandError
UnknownHome
UnknownCwd
EmptyPathError
NotAbsoluteHome(String)
NotAbsoluteCwd(String)
Implementations§
Source§impl ExpandPathError
impl ExpandPathError
pub fn lexer_error<T>(path: &T, source: ExpandPathLexerError) -> Self
pub fn identifier_expand_error<T>(path: &T, identifier: &str) -> Self
Trait Implementations§
Source§impl Debug for ExpandPathError
impl Debug for ExpandPathError
Source§impl Display for ExpandPathError
impl Display for ExpandPathError
Source§impl Error for ExpandPathError
impl Error for ExpandPathError
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 From<ExpandPathError> for KomichiError
impl From<ExpandPathError> for KomichiError
Source§fn from(source: ExpandPathError) -> Self
fn from(source: ExpandPathError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ExpandPathError
impl RefUnwindSafe for ExpandPathError
impl Send for ExpandPathError
impl Sync for ExpandPathError
impl Unpin for ExpandPathError
impl UnwindSafe for ExpandPathError
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