pub enum RenderError {
Show 16 variants
InvalidWidth {
width: usize,
},
MissingSource(SourceKey),
ProviderIdMismatch {
source: SourceKey,
returned: SourceId,
},
ProviderByteLengthMismatch {
source: SourceKey,
declared: u32,
actual: usize,
},
MissingSourceText(SourceKey),
StaleRevision {
source: SourceKey,
requested: SourceRevision,
current: Option<SourceRevision>,
},
ReversedRange {
source: SourceKey,
start: u32,
end: u32,
},
OutOfBounds {
source: SourceKey,
range: TextRange,
byte_len: u32,
},
InvalidUtf8Boundary {
source: SourceKey,
offset: u32,
},
MetadataLocationUnavailable {
source: SourceKey,
offset: u32,
},
MetadataCoordinateOverflow {
source: SourceKey,
location: LineColumn,
},
EmptySuggestion {
index: usize,
},
OverlappingEdits {
source: SourceKey,
previous: TextRange,
next: TextRange,
},
AmbiguousInsertions {
source: SourceKey,
offset: u32,
},
MultiplePrimaryLabels {
count: usize,
},
InvalidDocumentationUrl,
}Variants§
InvalidWidth
MissingSource(SourceKey)
ProviderIdMismatch
ProviderByteLengthMismatch
MissingSourceText(SourceKey)
StaleRevision
ReversedRange
OutOfBounds
InvalidUtf8Boundary
MetadataCoordinateOverflow
EmptySuggestion
OverlappingEdits
AmbiguousInsertions
MultiplePrimaryLabels
InvalidDocumentationUrl
Implementations§
Trait Implementations§
Source§impl Clone for RenderError
impl Clone for RenderError
Source§impl Debug for RenderError
impl Debug for RenderError
Source§impl Display for RenderError
impl Display for RenderError
impl Eq for RenderError
Source§impl Error for RenderError
impl Error for RenderError
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 From<RenderError> for DiagnosticRenderError
impl From<RenderError> for DiagnosticRenderError
Source§fn from(error: RenderError) -> Self
fn from(error: RenderError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for RenderError
impl PartialEq for RenderError
impl StructuralPartialEq for RenderError
Auto Trait Implementations§
impl Forget for RenderError
impl Freeze for RenderError
impl Move for RenderError
impl RefUnwindSafe for RenderError
impl Send for RenderError
impl Sync for RenderError
impl Unpin for RenderError
impl UnsafeUnpin for RenderError
impl UnwindSafe for RenderError
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