Enum filecheck::Error
[−]
[src]
pub enum Error { Syntax(String), UndefVariable(String), Backref(String), DuplicateDef(String), Regex(Error), }
A filecheck error.
Variants
Syntax(String)
A syntax error in a check line.
UndefVariable(String)
A check refers to an undefined variable.
The pattern contains $foo
where the foo
variable has not yet been defined.
Use $$
to match a literal dollar sign.
Backref(String)
A pattern contains a back-reference to a variable that was defined in the same pattern.
For example, check: Hello $(world=.*) $world
. Backreferences are not supported. Often the
desired effect can be achieved with the sameln
check:
check: Hello $(world=[^ ]*)
sameln: $world
DuplicateDef(String)
A pattern contains multiple definitions of the same variable.
Regex(Error)
An error in a regular expression.
Use cause()
to get the underlying Regex
library error.
Trait Implementations
impl Debug for Error
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl StdError for Error
[src]
fn description(&self) -> &str
[src]
A short description of the error. Read more
fn cause(&self) -> Option<&StdError>
[src]
The lower-level cause of this error, if any. Read more
impl Display for Error
[src]
fn fmt(&self, fmt: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more