Struct path2regex::CompilerOptions
source · 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
sourceimpl Clone for CompilerOptions
impl Clone for CompilerOptions
sourcefn clone(&self) -> CompilerOptions
fn clone(&self) -> CompilerOptions
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for CompilerOptions
impl Debug for CompilerOptions
sourceimpl Default for CompilerOptions
impl Default for CompilerOptions
sourceimpl Display for CompilerOptions
impl Display for CompilerOptions
sourceimpl From<CompilerOptions> for ParserOptions
impl From<CompilerOptions> for ParserOptions
sourcefn from(options: CompilerOptions) -> Self
fn from(options: CompilerOptions) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl RefUnwindSafe for CompilerOptions
impl Send for CompilerOptions
impl Sync for CompilerOptions
impl Unpin for CompilerOptions
impl UnwindSafe for CompilerOptions
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more