pub enum PathSegmentError {
Empty,
TooLong {
max: usize,
actual: usize,
},
InvalidChar {
char: char,
position: usize,
},
}Expand description
Errors for path segment parsing.
Variants§
Empty
Segment is empty
TooLong
Segment exceeds maximum length
InvalidChar
Invalid character (not lowercase alphanumeric or hyphen)
Trait Implementations§
Source§impl Clone for PathSegmentError
impl Clone for PathSegmentError
Source§fn clone(&self) -> PathSegmentError
fn clone(&self) -> PathSegmentError
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 PathSegmentError
impl Debug for PathSegmentError
Source§impl Display for PathSegmentError
impl Display for PathSegmentError
impl Eq for PathSegmentError
Source§impl Error for PathSegmentError
impl Error for PathSegmentError
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 PathSegmentError
impl PartialEq for PathSegmentError
impl StructuralPartialEq for PathSegmentError
Auto Trait Implementations§
impl Freeze for PathSegmentError
impl RefUnwindSafe for PathSegmentError
impl Send for PathSegmentError
impl Sync for PathSegmentError
impl Unpin for PathSegmentError
impl UnsafeUnpin for PathSegmentError
impl UnwindSafe for PathSegmentError
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