Enum stringsext::finding::Precision[][src]

pub enum Precision {
    Before,
    Exact,
    After,
}
Expand description

Used to express the precision of Finding::position when the algorithm can not determine its exact position.

Variants

Before

The finding is located somewhere before Finding::position. It is guarantied, that the finding is not farer than 2*--output-line-len bytes (or the previous finding from the same scanner) away.

Exact

The algorithm could determine the exact position of the Finding at Finding::position.

After

The finding is located some [1..2* --output_line_len] bytes after Finding::position or - in any case - always before the next Finding::position.

Trait Implementations

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.