#[non_exhaustive]pub enum AttrPathspecError {
Empty,
MultipleAttrClauses,
InvalidName(String),
DanglingEscape,
UnsupportedEscape,
}Expand description
Why a :(attr:...) pathspec clause was rejected.
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 clause names no attribute requirement (:(attr:)).
MultipleAttrClauses
More than one attr: clause appears in one pathspec.
InvalidName(String)
A requirement names an attribute that is not valid (-a=b, bad name, bad/name).
DanglingEscape
A \ escape ends the value or precedes whitespace.
UnsupportedEscape
A \ escape precedes something other than ,.
Trait Implementations§
Source§impl Clone for AttrPathspecError
impl Clone for AttrPathspecError
Source§impl Debug for AttrPathspecError
impl Debug for AttrPathspecError
Source§impl Display for AttrPathspecError
impl Display for AttrPathspecError
impl Eq for AttrPathspecError
Source§impl Error for AttrPathspecError
impl Error for AttrPathspecError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for AttrPathspecError
impl PartialEq for AttrPathspecError
impl StructuralPartialEq for AttrPathspecError
Auto Trait Implementations§
impl Freeze for AttrPathspecError
impl RefUnwindSafe for AttrPathspecError
impl Send for AttrPathspecError
impl Sync for AttrPathspecError
impl Unpin for AttrPathspecError
impl UnsafeUnpin for AttrPathspecError
impl UnwindSafe for AttrPathspecError
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