pub enum InvalidFeatureEntryKind {
Empty,
EmptyDepName,
EmptyDepOrFeature,
MultiplePathSeparators,
UnsupportedCharacter(char),
}Expand description
Why parsing a feature-list entry failed. Carried inside
ValidationError::InvalidFeatureEntry so user errors keep
the original string and the structural reason it was
rejected.
Variants§
Empty
The entry was empty.
EmptyDepName
The entry started with dep: but the name was empty.
EmptyDepOrFeature
The entry contained a / but either side was empty.
MultiplePathSeparators
The entry contained more than one / separator.
UnsupportedCharacter(char)
The entry contained a character outside the supported
alphabet (A-Z a-z 0-9 _ - . plus the leading dep: or
single / separator).
Implementations§
Trait Implementations§
Source§impl Clone for InvalidFeatureEntryKind
impl Clone for InvalidFeatureEntryKind
Source§fn clone(&self) -> InvalidFeatureEntryKind
fn clone(&self) -> InvalidFeatureEntryKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 InvalidFeatureEntryKind
impl Debug for InvalidFeatureEntryKind
Source§impl PartialEq for InvalidFeatureEntryKind
impl PartialEq for InvalidFeatureEntryKind
Source§fn eq(&self, other: &InvalidFeatureEntryKind) -> bool
fn eq(&self, other: &InvalidFeatureEntryKind) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for InvalidFeatureEntryKind
impl Eq for InvalidFeatureEntryKind
impl StructuralPartialEq for InvalidFeatureEntryKind
Auto Trait Implementations§
impl Freeze for InvalidFeatureEntryKind
impl RefUnwindSafe for InvalidFeatureEntryKind
impl Send for InvalidFeatureEntryKind
impl Sync for InvalidFeatureEntryKind
impl Unpin for InvalidFeatureEntryKind
impl UnsafeUnpin for InvalidFeatureEntryKind
impl UnwindSafe for InvalidFeatureEntryKind
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.