Enum filecheck::Error [] [src]

pub enum Error {
    Syntax(String),
    UndefVariable(String),
    Backref(String),
    DuplicateDef(String),
    Regex(Error),
}

A filecheck error.

Variants

A syntax error in a check line.

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.

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

A pattern contains multiple definitions of the same variable.

An error in a regular expression.

Use cause() to get the underlying Regex library error.

Trait Implementations

impl Fail for Error
[src]

[src]

Returns a reference to the underlying cause of this failure, if it is an error that wraps other errors. Read more

[src]

Returns a reference to the Backtrace carried by this failure, if it carries one. Read more

[src]

Provides context for this failure. Read more

[src]

Wraps this failure in a compatibility wrapper that implements std::error::Error. Read more

[src]

Returns a iterator over the causes of this Fail with itself as the first item and the root_cause as the final item. Read more

[src]

Returns the "root cause" of this Fail - the last value in the cause chain which does not return an underlying cause. Read more

impl Display for Error
[src]

[src]

Formats the value using the given formatter. Read more

impl Debug for Error
[src]

[src]

Formats the value using the given formatter. Read more

impl From<Error> for Error
[src]

[src]

Performs the conversion.

Auto Trait Implementations

impl Send for Error

impl Sync for Error