pub struct Filter { /* private fields */ }Expand description
Filter engine that resolves aliases and matches paths.
Implementations§
Source§impl Filter
impl Filter
Sourcepub fn new(
exclude: &[String],
only: &[String],
config: &AliasConfig,
languages: &[&str],
) -> Result<Self, FilterError>
pub fn new( exclude: &[String], only: &[String], config: &AliasConfig, languages: &[&str], ) -> Result<Self, FilterError>
Create a new filter from exclude/only patterns.
Patterns starting with @ are resolved as aliases.
Returns warnings for disabled aliases.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Filter
impl RefUnwindSafe for Filter
impl Send for Filter
impl Sync for Filter
impl Unpin for Filter
impl UnsafeUnpin for Filter
impl UnwindSafe for Filter
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