pub struct CompilerBuilder<I> { /* private fields */ }
Available on crate feature
compile
only.Expand description
The Builder of the Compiler
Implementations§
Source§impl<I> CompilerBuilder<I>
impl<I> CompilerBuilder<I>
Sourcepub fn new_with_options(source: I, options: CompilerOptions) -> Self
pub fn new_with_options(source: I, options: CompilerOptions) -> Self
Create a builder of the Compiler
with the options
Sourcepub fn set_delimiter<S>(&mut self, delimiter: S) -> &mut Self
pub fn set_delimiter<S>(&mut self, delimiter: S) -> &mut Self
Set the default delimiter for repeat parameters. (default: '/'
)
Sourcepub fn set_prefixes<S>(&mut self, prefixes: S) -> &mut Self
pub fn set_prefixes<S>(&mut self, prefixes: S) -> &mut Self
List of characters to automatically consider prefixes when parsing.
Sourcepub fn set_sensitive(&mut self, yes: bool) -> &mut Self
pub fn set_sensitive(&mut self, yes: bool) -> &mut Self
When true
the regexp will be case sensitive. (default: false
)
Sourcepub fn set_encode(
&mut self,
encode: for<'a> fn(&'a str, &'a Key) -> String,
) -> &mut Self
pub fn set_encode( &mut self, encode: for<'a> fn(&'a str, &'a Key) -> String, ) -> &mut Self
Function for encoding input strings for output.
Sourcepub fn set_validate(&mut self, validate: bool) -> &mut Self
pub fn set_validate(&mut self, validate: bool) -> &mut Self
Trait Implementations§
Source§impl<I: Clone> Clone for CompilerBuilder<I>
impl<I: Clone> Clone for CompilerBuilder<I>
Source§fn clone(&self) -> CompilerBuilder<I>
fn clone(&self) -> CompilerBuilder<I>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl<I> Freeze for CompilerBuilder<I>where
I: Freeze,
impl<I> RefUnwindSafe for CompilerBuilder<I>where
I: RefUnwindSafe,
impl<I> Send for CompilerBuilder<I>where
I: Send,
impl<I> Sync for CompilerBuilder<I>where
I: Sync,
impl<I> Unpin for CompilerBuilder<I>where
I: Unpin,
impl<I> UnwindSafe for CompilerBuilder<I>where
I: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more