#[non_exhaustive]pub enum ExcludeRefusal {
Empty,
TooLong,
ContainsNul,
DotEntry,
Absolute,
UnsupportedWildcard,
WildcardWithSeparator,
GlobMetacharacter,
PaddedWithBlank,
ContainsComma,
}Expand description
Why a creation exclude pattern is refused.
§Examples
use exarch_core::ExcludeRefusal;
assert_eq!(ExcludeRefusal::GlobMetacharacter.as_str(), "glob_metacharacter");Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Empty
The pattern is empty
TooLong
The pattern is longer than the maximum entry length
ContainsNul
The pattern contains a NUL byte
DotEntry
A path component is . or ..
Absolute
The pattern is an absolute path
UnsupportedWildcard
The wildcard shape is not one of name, name* and *name
WildcardWithSeparator
A * is combined with a path separator
GlobMetacharacter
The pattern holds ?, [, ], {, } or !, which would be
matched literally
PaddedWithBlank
The pattern starts or ends with whitespace or a control character
ContainsComma
The pattern holds a comma, which reads as a list separator
Implementations§
Source§impl ExcludeRefusal
impl ExcludeRefusal
Sourcepub const fn explanation(self) -> &'static str
pub const fn explanation(self) -> &'static str
A short explanation for a message.
Trait Implementations§
Source§impl Clone for ExcludeRefusal
impl Clone for ExcludeRefusal
Source§impl ClosedEnum for ExcludeRefusal
impl ClosedEnum for ExcludeRefusal
impl Copy for ExcludeRefusal
Source§impl Debug for ExcludeRefusal
impl Debug for ExcludeRefusal
Source§impl Display for ExcludeRefusal
impl Display for ExcludeRefusal
impl Eq for ExcludeRefusal
Source§impl PartialEq for ExcludeRefusal
impl PartialEq for ExcludeRefusal
impl StructuralPartialEq for ExcludeRefusal
Auto Trait Implementations§
impl Freeze for ExcludeRefusal
impl RefUnwindSafe for ExcludeRefusal
impl Send for ExcludeRefusal
impl Sync for ExcludeRefusal
impl Unpin for ExcludeRefusal
impl UnsafeUnpin for ExcludeRefusal
impl UnwindSafe for ExcludeRefusal
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.