pub enum CommandLexError<'a> {
UnclosedQuote(usize, &'a str),
NamedProhibitsWhitespace(usize, &'a str),
NamedCannotContainNamed(usize, &'a str),
}Expand description
An error that can appear while lexing a command.
Variants§
UnclosedQuote(usize, &'a str)
There is a unclosed quote.
NamedProhibitsWhitespace(usize, &'a str)
There is a whitespace before/after equal sign.
NamedCannotContainNamed(usize, &'a str)
There is a nam assignment syntax after equal sign
Trait Implementations§
Source§impl<'a> Debug for CommandLexError<'a>
impl<'a> Debug for CommandLexError<'a>
Source§impl Display for CommandLexError<'_>
impl Display for CommandLexError<'_>
Source§impl Error for CommandLexError<'_>
impl Error for CommandLexError<'_>
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<'a> From<CommandLexError<'a>> for TokenTransformError<'a>
impl<'a> From<CommandLexError<'a>> for TokenTransformError<'a>
Source§fn from(e: CommandLexError<'a>) -> Self
fn from(e: CommandLexError<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> PartialEq for CommandLexError<'a>
impl<'a> PartialEq for CommandLexError<'a>
impl<'a> Eq for CommandLexError<'a>
impl<'a> StructuralPartialEq for CommandLexError<'a>
Auto Trait Implementations§
impl<'a> Freeze for CommandLexError<'a>
impl<'a> RefUnwindSafe for CommandLexError<'a>
impl<'a> Send for CommandLexError<'a>
impl<'a> Sync for CommandLexError<'a>
impl<'a> Unpin for CommandLexError<'a>
impl<'a> UnwindSafe for CommandLexError<'a>
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