pub struct RegexMatchFilter<F: ImportFilter, D: ImportFilter = ImportRule> { /* private fields */ }
Implementations§
Source§impl<F: ImportFilter> RegexMatchFilter<F, ImportRule>
impl<F: ImportFilter> RegexMatchFilter<F, ImportRule>
Source§impl<F: ImportFilter, D: ImportFilter> RegexMatchFilter<F, D>
impl<F: ImportFilter, D: ImportFilter> RegexMatchFilter<F, D>
pub fn with_default(regex: Regex, match_rule: F, default_rule: D) -> Self
Trait Implementations§
Source§impl<F: Clone + ImportFilter, D: Clone + ImportFilter> Clone for RegexMatchFilter<F, D>
impl<F: Clone + ImportFilter, D: Clone + ImportFilter> Clone for RegexMatchFilter<F, D>
Source§fn clone(&self) -> RegexMatchFilter<F, D>
fn clone(&self) -> RegexMatchFilter<F, D>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<F: Debug + ImportFilter, D: Debug + ImportFilter> Debug for RegexMatchFilter<F, D>
impl<F: Debug + ImportFilter, D: Debug + ImportFilter> Debug for RegexMatchFilter<F, D>
Source§impl<F: ImportFilter, D: ImportFilter> ImportFilter for RegexMatchFilter<F, D>
impl<F: ImportFilter, D: ImportFilter> ImportFilter for RegexMatchFilter<F, D>
fn filter_rule(&self, import_path: &ForeignInterfacePath) -> ImportRule
Auto Trait Implementations§
impl<F, D> Freeze for RegexMatchFilter<F, D>
impl<F, D> RefUnwindSafe for RegexMatchFilter<F, D>where
F: RefUnwindSafe,
D: RefUnwindSafe,
impl<F, D> Send for RegexMatchFilter<F, D>
impl<F, D> Sync for RegexMatchFilter<F, D>
impl<F, D> Unpin for RegexMatchFilter<F, D>
impl<F, D> UnwindSafe for RegexMatchFilter<F, D>where
F: UnwindSafe,
D: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more