pub struct CompilerOptions {
pub delimiter: String,
pub prefixes: String,
pub sensitive: bool,
pub encode: for<'a> fn(&'a str, &'a Key) -> String,
pub validate: bool,
}
Available on crate feature
compile
only.Expand description
The Configuration of the Compiler
Fields§
§delimiter: String
Set the default delimiter for repeat parameters. (default: '/'
)
prefixes: String
List of characters to automatically consider prefixes when parsing.
sensitive: bool
When true
the regexp will be case sensitive. (default: false
)
encode: for<'a> fn(&'a str, &'a Key) -> String
Function for encoding input strings for output.
validate: bool
When false
the function can produce an invalid (unmatched) path. (default: true
)
Trait Implementations§
Source§impl Clone for CompilerOptions
impl Clone for CompilerOptions
Source§fn clone(&self) -> CompilerOptions
fn clone(&self) -> CompilerOptions
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for CompilerOptions
impl Debug for CompilerOptions
Source§impl Default for CompilerOptions
impl Default for CompilerOptions
Source§impl Display for CompilerOptions
impl Display for CompilerOptions
Source§impl From<CompilerOptions> for ParserOptions
impl From<CompilerOptions> for ParserOptions
Source§fn from(options: CompilerOptions) -> Self
fn from(options: CompilerOptions) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for CompilerOptions
impl RefUnwindSafe for CompilerOptions
impl Send for CompilerOptions
impl Sync for CompilerOptions
impl Unpin for CompilerOptions
impl UnwindSafe for CompilerOptions
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