Struct regex::bytes::ReplacerRef

source ·
pub struct ReplacerRef<'a, R: ?Sized>(_);
Expand description

A by-reference adaptor for a Replacer.

This permits reusing the same Replacer value in multiple calls to a replacement routine like Regex::replace_all.

This type is created by Replacer::by_ref.

Trait Implementations§

Formats the value using the given formatter. Read more
Appends possibly empty data to dst to replace the current match. Read more
Return a fixed unchanging replacement byte string. Read more
Returns a type that implements Replacer, but that borrows and wraps this Replacer. Read more

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.