pub enum Query {
    Substring(StringString),
    Regex(RegexString),
    Subvert(Vec<(String, String)>),
}
Expand description

A replacement Query

Variants

Substring(StringString)

Substitute old with new

Regex(RegexString)

Replace the parts matching the regex with replacement

Subvert(Vec<(String, String)>)

Replace all instances of pattern with replacement, by using case conversion methods. This allows replacing FooBar with SpamEggs and foo_bar with spam_eggs using only one query

Implementations

Constructor for the Substring variant

Constructor for the Regex variant

Constructor for the Subvert variant

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.