pub struct RegexValidator { /* private fields */ }Implementations§
Source§impl RegexValidator
impl RegexValidator
pub fn new() -> Self
pub fn with_config(config: RegexValidationConfig) -> Self
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§
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