pub struct PatternSpec { /* private fields */ }Expand description
One selector pattern together with its ordered per-selector exclusions.
Plain strings convert to this type automatically. Use pattern only when a selector needs an
except companion or a target-explicit exclusion.
Implementations§
Source§impl PatternSpec
impl PatternSpec
Sourcepub fn except(self, exclusion: impl Into<String>) -> Self
pub fn except(self, exclusion: impl Into<String>) -> Self
Excludes a pattern interpreted against the parent selector’s target.
Sourcepub fn except_all<I, S>(self, exclusions: I) -> Self
pub fn except_all<I, S>(self, exclusions: I) -> Self
Excludes multiple patterns interpreted against the parent selector’s target.
Sourcepub fn except_in_path(self, exclusion: impl Into<String>) -> Self
pub fn except_in_path(self, exclusion: impl Into<String>) -> Self
Excludes a pattern matched against the complete normalized path.
Sourcepub fn except_in_folder(self, exclusion: impl Into<String>) -> Self
pub fn except_in_folder(self, exclusion: impl Into<String>) -> Self
Excludes a pattern matched against the containing folder.
Sourcepub fn except_with_name(self, exclusion: impl Into<String>) -> Self
pub fn except_with_name(self, exclusion: impl Into<String>) -> Self
Excludes a pattern matched against the filename.
Sourcepub fn except_for_types_matching(self, exclusion: impl Into<String>) -> Self
pub fn except_for_types_matching(self, exclusion: impl Into<String>) -> Self
Excludes a pattern matched against the unqualified Rust type name.
Sourcepub fn exclusions(&self) -> &[PatternExclusion]
pub fn exclusions(&self) -> &[PatternExclusion]
Returns exclusions in declaration order.
Trait Implementations§
Source§impl Clone for PatternSpec
impl Clone for PatternSpec
Source§fn clone(&self) -> PatternSpec
fn clone(&self) -> PatternSpec
Returns a copy 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 Debug for PatternSpec
impl Debug for PatternSpec
Source§impl From<&String> for PatternSpec
impl From<&String> for PatternSpec
Source§impl From<&str> for PatternSpec
impl From<&str> for PatternSpec
Source§impl From<String> for PatternSpec
impl From<String> for PatternSpec
Source§impl PartialEq for PatternSpec
impl PartialEq for PatternSpec
impl Eq for PatternSpec
impl StructuralPartialEq for PatternSpec
Auto Trait Implementations§
impl Freeze for PatternSpec
impl RefUnwindSafe for PatternSpec
impl Send for PatternSpec
impl Sync for PatternSpec
impl Unpin for PatternSpec
impl UnwindSafe for PatternSpec
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.