pub enum FilterRule {
MinLength(usize),
Regex(Regex),
SkipType(String),
Custom(Box<dyn Fn(&str) -> bool>),
}
Expand description
过滤规则
Variants§
MinLength(usize)
最小长度规则
Regex(Regex)
正则表达式规则
SkipType(String)
跳过特定类型
Custom(Box<dyn Fn(&str) -> bool>)
自定义函数规则
Auto Trait Implementations§
impl Freeze for FilterRule
impl !RefUnwindSafe for FilterRule
impl !Send for FilterRule
impl !Sync for FilterRule
impl Unpin for FilterRule
impl !UnwindSafe for FilterRule
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