Struct symbolic::debuginfo::sourcebundle::SourceBundleError
source · pub struct SourceBundleError { /* private fields */ }
Expand description
An error returned when handling SourceBundle
.
Implementations§
source§impl SourceBundleError
impl SourceBundleError
sourcepub fn new<E>(kind: SourceBundleErrorKind, source: E) -> SourceBundleErrorwhere
E: Into<Box<dyn Error + Sync + Send>>,
pub fn new<E>(kind: SourceBundleErrorKind, source: E) -> SourceBundleErrorwhere E: Into<Box<dyn Error + Sync + Send>>,
Creates a new SourceBundle error from a known kind of error as well as an arbitrary error payload.
This function is used to generically create source bundle errors which do not originate from
symbolic
itself. The source
argument is an arbitrary payload which will be contained in
this SourceBundleError
.
sourcepub fn kind(&self) -> SourceBundleErrorKind
pub fn kind(&self) -> SourceBundleErrorKind
Returns the corresponding SourceBundleErrorKind
for this error.
Trait Implementations§
source§impl Debug for SourceBundleError
impl Debug for SourceBundleError
source§impl Display for SourceBundleError
impl Display for SourceBundleError
source§impl Error for SourceBundleError
impl Error for SourceBundleError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<SourceBundleErrorKind> for SourceBundleError
impl From<SourceBundleErrorKind> for SourceBundleError
source§fn from(kind: SourceBundleErrorKind) -> SourceBundleError
fn from(kind: SourceBundleErrorKind) -> SourceBundleError
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for SourceBundleError
impl Send for SourceBundleError
impl Sync for SourceBundleError
impl Unpin for SourceBundleError
impl !UnwindSafe for SourceBundleError
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
§impl<I, T> ExtractContext<I, ()> for T
impl<I, T> ExtractContext<I, ()> for T
§fn extract_context(self, _original_input: I)
fn extract_context(self, _original_input: I)
Given the context attached to a nom error, and given the original
input to the nom parser, extract more the useful context information. Read more
§impl<T> Indentable for Twhere
T: Display,
impl<T> Indentable for Twhere T: Display,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<I> RecreateContext<I> for I
impl<I> RecreateContext<I> for I
§fn recreate_context(_original_input: I, tail: I) -> I
fn recreate_context(_original_input: I, tail: I) -> I
Given the original input, as well as the context reported by nom,
recreate a context in the original string where the error occurred. Read more