pub enum ExternalSpanError {
OutOfBounds {
index: usize,
source_len: usize,
},
Empty {
index: usize,
},
OrderOrOverlap {
index: usize,
},
InvalidPattern(String),
}Expand description
Validation failure for comments supplied by an external scanner.
Variants§
OutOfBounds
A span reaches past the end of the source.
Fields
Empty
A span covers no bytes.
OrderOrOverlap
A span starts before its predecessor ends.
InvalidPattern(String)
A keep_regex or remove_regex entry would not compile.
Trait Implementations§
Source§impl Clone for ExternalSpanError
impl Clone for ExternalSpanError
Source§fn clone(&self) -> ExternalSpanError
fn clone(&self) -> ExternalSpanError
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 ExternalSpanError
impl Debug for ExternalSpanError
Source§impl Display for ExternalSpanError
impl Display for ExternalSpanError
impl Eq for ExternalSpanError
Source§impl Error for ExternalSpanError
impl Error for ExternalSpanError
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 ExternalSpanError
impl PartialEq for ExternalSpanError
impl StructuralPartialEq for ExternalSpanError
Auto Trait Implementations§
impl Freeze for ExternalSpanError
impl RefUnwindSafe for ExternalSpanError
impl Send for ExternalSpanError
impl Sync for ExternalSpanError
impl Unpin for ExternalSpanError
impl UnsafeUnpin for ExternalSpanError
impl UnwindSafe for ExternalSpanError
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