pub enum FilterPattern {
Literal(String),
Digits,
}Expand description
A pattern FilteringTextInputFormatter matches against incoming text.
Dart’s Pattern is a string or a RegExp. There is no regex crate here;
Self::Digits is RegExp(r'[0-9]').
Variants§
Literal(String)
Dart String pattern: every occurrence of this substring.
Digits
Dart RegExp(r'[0-9]'): every ASCII digit.
Trait Implementations§
Source§impl Clone for FilterPattern
impl Clone for FilterPattern
Auto Trait Implementations§
impl Freeze for FilterPattern
impl RefUnwindSafe for FilterPattern
impl Send for FilterPattern
impl Sync for FilterPattern
impl Unpin for FilterPattern
impl UnsafeUnpin for FilterPattern
impl UnwindSafe for FilterPattern
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