pub struct RegexValidator { /* private fields */ }Implementations§
Source§impl RegexValidator
impl RegexValidator
pub fn new() -> RegexValidator
pub fn with_config(config: RegexValidationConfig) -> RegexValidator
pub fn config(&self) -> &RegexValidationConfig
pub fn validate( &self, pattern: &str, start_pos: usize, ) -> Result<(), RegexError>
pub fn detects_code_execution(&self, pattern: &str) -> bool
pub fn detect_nested_quantifiers(&self, pattern: &str) -> bool
Trait Implementations§
Source§impl Default for RegexValidator
impl Default for RegexValidator
Source§fn default() -> RegexValidator
fn default() -> RegexValidator
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for RegexValidator
impl RefUnwindSafe for RegexValidator
impl Send for RegexValidator
impl Sync for RegexValidator
impl Unpin for RegexValidator
impl UnsafeUnpin for RegexValidator
impl UnwindSafe for RegexValidator
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