pub struct ReadableValidator { /* private fields */ }Expand description
Readable validator
Implementations§
Source§impl ReadableValidator
impl ReadableValidator
pub fn new() -> Self
pub fn with_priority(self, priority: Priority) -> Self
pub fn with_message(self, message: impl Into<String>) -> Self
Trait Implementations§
Source§impl Debug for ReadableValidator
impl Debug for ReadableValidator
Source§impl Validator for ReadableValidator
impl Validator for ReadableValidator
Source§fn validate(&self, input: &str) -> ValidationResult
fn validate(&self, input: &str) -> ValidationResult
Validate complete input
Source§fn partial_validate(
&self,
input: &str,
_cursor_pos: usize,
) -> PartialValidationResult
fn partial_validate( &self, input: &str, _cursor_pos: usize, ) -> PartialValidationResult
Validate partial input during typing
Source§fn description(&self) -> &str
fn description(&self) -> &str
Get human-readable description of this validator
Auto Trait Implementations§
impl Freeze for ReadableValidator
impl RefUnwindSafe for ReadableValidator
impl Send for ReadableValidator
impl Sync for ReadableValidator
impl Unpin for ReadableValidator
impl UnwindSafe for ReadableValidator
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