pub enum StyleMatcher {
AnyDir,
AnyFile,
AnyLink,
Extension(String),
NameEquals(String),
NameContains(String),
NameGlob(String),
NameRegex(String),
}Expand description
Matcher for a style rule.
Variants§
AnyDir
Match any directory.
AnyFile
Match any file.
AnyLink
Match any symbolic link.
Extension(String)
Match a file extension (case-insensitive, without leading dot).
NameEquals(String)
Match by exact base name (case-insensitive).
NameContains(String)
Match by base name substring (case-insensitive).
NameGlob(String)
Match by base name glob (* / ?, case-insensitive).
NameRegex(String)
Match by base name regex (case-insensitive).
IGFD-style wrappers are accepted: ((...)).
The compiled regex is cached inside FileStyleRegistry.
Trait Implementations§
Source§impl Clone for StyleMatcher
impl Clone for StyleMatcher
Source§fn clone(&self) -> StyleMatcher
fn clone(&self) -> StyleMatcher
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 Debug for StyleMatcher
impl Debug for StyleMatcher
Source§impl PartialEq for StyleMatcher
impl PartialEq for StyleMatcher
impl Eq for StyleMatcher
impl StructuralPartialEq for StyleMatcher
Auto Trait Implementations§
impl Freeze for StyleMatcher
impl RefUnwindSafe for StyleMatcher
impl Send for StyleMatcher
impl Sync for StyleMatcher
impl Unpin for StyleMatcher
impl UnsafeUnpin for StyleMatcher
impl UnwindSafe for StyleMatcher
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.