pub enum PatternSegmentError {
IllegalHyphen(usize),
InvalidCharacter(char),
TooLong(usize),
EmptyString,
MultipleWildcards,
NonStandaloneOrigin,
}Variants§
IllegalHyphen(usize)
InvalidCharacter(char)
TooLong(usize)
EmptyString
MultipleWildcards
NonStandaloneOrigin
Trait Implementations§
source§impl Clone for PatternSegmentError
impl Clone for PatternSegmentError
source§fn clone(&self) -> PatternSegmentError
fn clone(&self) -> PatternSegmentError
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 PatternSegmentError
impl Debug for PatternSegmentError
source§impl Display for PatternSegmentError
impl Display for PatternSegmentError
source§impl Error for PatternSegmentError
impl Error for PatternSegmentError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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 Ord for PatternSegmentError
impl Ord for PatternSegmentError
source§fn cmp(&self, other: &PatternSegmentError) -> Ordering
fn cmp(&self, other: &PatternSegmentError) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for PatternSegmentError
impl PartialEq for PatternSegmentError
source§fn eq(&self, other: &PatternSegmentError) -> bool
fn eq(&self, other: &PatternSegmentError) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd for PatternSegmentError
impl PartialOrd for PatternSegmentError
source§fn partial_cmp(&self, other: &PatternSegmentError) -> Option<Ordering>
fn partial_cmp(&self, other: &PatternSegmentError) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moreimpl Eq for PatternSegmentError
impl StructuralPartialEq for PatternSegmentError
Auto Trait Implementations§
impl RefUnwindSafe for PatternSegmentError
impl Send for PatternSegmentError
impl Sync for PatternSegmentError
impl Unpin for PatternSegmentError
impl UnwindSafe for PatternSegmentError
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