From 64106c4d3d4ddba8c7bc2af75376e6d3d3d75601 Mon Sep 17 00:00:00 2001 From: Date: Mon, 29 Jun 2015 20:16:15 +0000 Subject: Update documentation --- regex/trait.Replacer.html | 125 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 125 insertions(+) create mode 100644 regex/trait.Replacer.html (limited to 'regex/trait.Replacer.html') diff --git a/regex/trait.Replacer.html b/regex/trait.Replacer.html new file mode 100644 index 0000000..d83f7b8 --- /dev/null +++ b/regex/trait.Replacer.html @@ -0,0 +1,125 @@ + + + + + + + + + + regex::Replacer - Rust + + + + + + + + + + + + + + + +
+

Trait regex::Replacer + + [] + + [src]

+
pub trait Replacer {
+    fn reg_replace<'a>(&'a mut self, caps: &Captures) -> Cow<'a, str>;
+
+    fn no_expand<'a>(&'a mut self) -> Option<Cow<'a, str>> { ... }
+}

Replacer describes types that can be used to replace matches in a string.

+
+

Required Methods

+
+

fn reg_replace<'a>(&'a mut self, caps: &Captures) -> Cow<'a, str>

Returns a possibly owned string that is used to replace the match +corresponding to the caps capture group.

+ +

The 'a lifetime refers to the lifetime of a borrowed string when +a new owned string isn't needed (e.g., for NoExpand).

+
+

Provided Methods

+
+

fn no_expand<'a>(&'a mut self) -> Option<Cow<'a, str>>

Returns a possibly owned string that never needs expansion.

+
+

Implementors

+
+ + + + + + + + + + + + + + + \ No newline at end of file -- cgit v1.2.3