pub enum SummarySpanError {
OutOfBounds {
index: usize,
},
InvalidUtf8Boundary {
index: usize,
},
OverlapOrUnordered {
index: usize,
},
UncoveredNonWhitespace {
byte: usize,
},
AuthorityMismatch {
index: usize,
expected: SourceAuthority,
observed: SourceAuthority,
},
}Expand description
Span validation failure.
Variants§
OutOfBounds
A range does not satisfy start <= end <= summary length.
InvalidUtf8Boundary
A range boundary splits a UTF-8 scalar.
OverlapOrUnordered
A span starts before the prior span ends.
UncoveredNonWhitespace
Non-whitespace summary text has no covering span.
AuthorityMismatch
Cached max authority disagrees with recomputed authority.
Implementations§
Trait Implementations§
Source§impl Clone for SummarySpanError
impl Clone for SummarySpanError
Source§fn clone(&self) -> SummarySpanError
fn clone(&self) -> SummarySpanError
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 SummarySpanError
impl Debug for SummarySpanError
Source§impl PartialEq for SummarySpanError
impl PartialEq for SummarySpanError
Source§fn eq(&self, other: &SummarySpanError) -> bool
fn eq(&self, other: &SummarySpanError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for SummarySpanError
impl StructuralPartialEq for SummarySpanError
Auto Trait Implementations§
impl Freeze for SummarySpanError
impl RefUnwindSafe for SummarySpanError
impl Send for SummarySpanError
impl Sync for SummarySpanError
impl Unpin for SummarySpanError
impl UnsafeUnpin for SummarySpanError
impl UnwindSafe for SummarySpanError
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