pub enum ScopeLabelError {
Empty,
TooLong {
bytes: usize,
max: usize,
},
EmptySegment,
InvalidSegmentStart {
offset: usize,
},
InvalidByte {
offset: usize,
},
}Expand description
ScopeLabelError
A scope syntax failure; lengths and offsets count UTF-8 bytes.
Variants§
Empty
The label contains no bytes.
TooLong
The label exceeds the inclusive byte limit.
EmptySegment
A leading, repeated or trailing colon creates an empty segment.
InvalidSegmentStart
A segment does not begin with an ASCII lowercase letter or digit.
InvalidByte
A continuation byte is outside the ASCII scope grammar.
Trait Implementations§
Source§impl Clone for ScopeLabelError
impl Clone for ScopeLabelError
impl Copy for ScopeLabelError
Source§impl Debug for ScopeLabelError
impl Debug for ScopeLabelError
Source§impl Display for ScopeLabelError
impl Display for ScopeLabelError
impl Eq for ScopeLabelError
Source§impl Error for ScopeLabelError
impl Error for ScopeLabelError
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 ScopeLabelError
impl PartialEq for ScopeLabelError
impl StructuralPartialEq for ScopeLabelError
Auto Trait Implementations§
impl Forget for ScopeLabelError
impl Freeze for ScopeLabelError
impl Move for ScopeLabelError
impl RefUnwindSafe for ScopeLabelError
impl Send for ScopeLabelError
impl Sync for ScopeLabelError
impl Unpin for ScopeLabelError
impl UnsafeUnpin for ScopeLabelError
impl UnwindSafe for ScopeLabelError
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