pub enum ScopeLabelError {
Empty,
TooLong {
bytes: usize,
max: usize,
},
EmptySegment,
InvalidSegmentStart {
offset: usize,
},
InvalidByte {
offset: usize,
},
}Expand description
A scope label’s grammar failure. Offsets and lengths count UTF-8 bytes.
Variants§
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 Freeze 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