#[non_exhaustive]pub enum ShlexError {
NoClosingQuotation,
NoEscapedCharacter,
}Expand description
Error from shlex_split, mirroring the ValueError messages of
Python’s shlex.
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.
NoClosingQuotation
A ' or " quote was not closed (No closing quotation).
NoEscapedCharacter
The input ended with a lone backslash (No escaped character).
Trait Implementations§
Source§impl Clone for ShlexError
impl Clone for ShlexError
impl Copy for ShlexError
Source§impl Debug for ShlexError
impl Debug for ShlexError
Source§impl Display for ShlexError
impl Display for ShlexError
impl Eq for ShlexError
Source§impl Error for ShlexError
impl Error for ShlexError
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 ShlexError
impl Hash for ShlexError
Source§impl PartialEq for ShlexError
impl PartialEq for ShlexError
impl StructuralPartialEq for ShlexError
Auto Trait Implementations§
impl Freeze for ShlexError
impl RefUnwindSafe for ShlexError
impl Send for ShlexError
impl Sync for ShlexError
impl Unpin for ShlexError
impl UnsafeUnpin for ShlexError
impl UnwindSafe for ShlexError
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