@@ -316,36 +316,36 @@ impl RegexBuilder {
316
316
pub fn build (& self ) -> Result <Regex , Error >;
317
317
318
318
/// Set the case insensitive flag (i).
319
- pub fn case_insensitive (& mut self , yes : bool );
319
+ pub fn case_insensitive (& mut self , yes : bool ) -> & mut RegexBuilder ;
320
320
321
321
/// Set the multi line flag (m).
322
- pub fn multi_line (& mut self , yes : bool );
322
+ pub fn multi_line (& mut self , yes : bool ) -> & mut RegexBuilder ;
323
323
324
324
/// Set the dot-matches-any-character flag (s).
325
- pub fn dot_matches_new_line (& mut self , yes : bool );
325
+ pub fn dot_matches_new_line (& mut self , yes : bool ) -> & mut RegexBuilder ;
326
326
327
327
/// Set the swap-greedy flag (U).
328
- pub fn swap_greed (& mut self , yes : bool );
328
+ pub fn swap_greed (& mut self , yes : bool ) -> & mut RegexBuilder ;
329
329
330
330
/// Set the ignore whitespace flag (x).
331
- pub fn ignore_whitespace (& mut self , yes : bool );
331
+ pub fn ignore_whitespace (& mut self , yes : bool ) -> & mut RegexBuilder ;
332
332
333
333
/// Set the Unicode flag (u).
334
- pub fn unicode (& mut self , yes : bool );
334
+ pub fn unicode (& mut self , yes : bool ) -> & mut RegexBuilder ;
335
335
336
336
/// Set the approximate size limit (in bytes) of the compiled regular
337
337
/// expression.
338
338
///
339
339
/// If compiling a pattern would approximately exceed this size, then
340
340
/// compilation will fail.
341
- pub fn size_limit (& mut self , limit : usize );
341
+ pub fn size_limit (& mut self , limit : usize ) -> & mut RegexBuilder ;
342
342
343
343
/// Set the approximate size limit (in bytes) of the cache used by the DFA.
344
344
///
345
345
/// This is a per thread limit. Once the DFA fills the cache, it will be
346
346
/// wiped and refilled again. If the cache is wiped too frequently, the
347
347
/// DFA will quit and fall back to another matching engine.
348
- pub fn dfa_size_limit (& mut self , limit : usize );
348
+ pub fn dfa_size_limit (& mut self , limit : usize ) -> & mut RegexBuilder ;
349
349
}
350
350
```
351
351
0 commit comments