Enum enigo_copy::dsl::ParseError
source · pub enum ParseError {
UnknownTag(String),
UnexpectedOpen,
UnmatchedOpen,
UnmatchedClose,
EmptyTag,
MissingUnicodeAction,
}
Expand description
An error that can occur when parsing DSL
Variants§
UnknownTag(String)
When a tag doesn’t exist. Example: {+TEST}{-TEST} ^^^^ ^^^^
UnexpectedOpen
When a { is encountered inside a {TAG}. Example: {+HELLO{WORLD} ^
UnmatchedOpen
When a { is never matched with a }. Example: {+SHIFT}Hello{-SHIFT ^
UnmatchedClose
Opposite of UnmatchedOpen. Example: +SHIFT}Hello{-SHIFT} ^
EmptyTag
When {} is encountered with no tag Example: {+SHIFT}Hello{} ^^
MissingUnicodeAction
When {UNICODE} is encountered without an action Use {+UNICODE} or {-UNICODE} to enable / disable unicode
Trait Implementations§
source§impl Debug for ParseError
impl Debug for ParseError
source§impl Display for ParseError
impl Display for ParseError
source§impl Error for ParseError
impl Error for ParseError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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 PartialEq<ParseError> for ParseError
impl PartialEq<ParseError> for ParseError
source§fn eq(&self, other: &ParseError) -> bool
fn eq(&self, other: &ParseError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.