Struct stc_ts_errors::Error
source · [−]Expand description
ErrorKind with debug contexts attached.
Fields
contexts: Vec<String>
inner: Box<ErrorKind>
Implementations
sourceimpl Error
impl Error
pub fn convert<F>(self, op: F) -> Selfwhere
F: FnOnce(ErrorKind) -> ErrorKind,
sourcepub fn convert_all<F>(self, op: F) -> Selfwhere
F: FnMut(Self) -> Self,
pub fn convert_all<F>(self, op: F) -> Selfwhere
F: FnMut(Self) -> Self,
Convert all errors if self
is [Error::Errors] and convert itself
otherwise.
pub(crate) fn convert_all_inner<F>(self, op: &mut F) -> Selfwhere
F: FnMut(Self) -> Self,
Methods from Deref<Target = ErrorKind>
pub fn is_property_not_found(&self) -> bool
pub fn is_var_not_found(&self) -> bool
pub fn is_readonly_error(&self) -> bool
pub fn is_assign_failure(&self) -> bool
pub fn is_type_not_found(&self) -> bool
Trait Implementations
sourceimpl Extend<Error> for Errors
impl Extend<Error> for Errors
sourcefn extend<T: IntoIterator<Item = Error>>(&mut self, iter: T)
fn extend<T: IntoIterator<Item = Error>>(&mut self, iter: T)
Extends a collection with the contents of an iterator. Read more
sourcefn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
🔬This is a nightly-only experimental API. (
extend_one
)Extends a collection with exactly one element.
sourcefn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
🔬This is a nightly-only experimental API. (
extend_one
)Reserves capacity in a collection for the given number of additional elements. Read more
sourceimpl From<StackOverflowError> for Error
impl From<StackOverflowError> for Error
sourcefn from(e: StackOverflowError) -> Self
fn from(e: StackOverflowError) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for Error
Auto Trait Implementations
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<R, N> IntoRNode<R> for Nwhere
R: RNode<Orig = N>,
impl<R, N> IntoRNode<R> for Nwhere
R: RNode<Orig = N>,
fn into_rnode(self, g: &mut NodeIdGenerator) -> R
sourceimpl<T> SpanExt for Twhere
T: Spanned,
impl<T> SpanExt for Twhere
T: Spanned,
fn is_synthesized(&self) -> bool
fn starts_on_new_line(&self, format: ListFormat) -> bool
sourcefn comment_range(&self) -> Span
fn comment_range(&self) -> Span
Gets a custom text range to use when emitting comments.