pub struct Error(/* private fields */);
Expand description
This crates Error type
Implementations§
source§impl Error
impl Error
sourcepub fn from(error: impl ToTokensError + 'static) -> Self
pub fn from(error: impl ToTokensError + 'static) -> Self
Mimics From<impl ToTokensError> for Error
implementation to
not conflict std’s From<T> for T
sourcepub fn push(&mut self, error: impl ToTokensError + 'static)
pub fn push(&mut self, error: impl ToTokensError + 'static)
Pushes an additional Error
Trait Implementations§
source§impl<I: ToTokensError + 'static> Extend<I> for Error
impl<I: ToTokensError + 'static> Extend<I> for Error
source§fn extend<T: IntoIterator<Item = I>>(&mut self, iter: T)
fn extend<T: IntoIterator<Item = I>>(&mut self, iter: T)
Extends a collection with the contents of an iterator. Read more
source§fn 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.
source§fn 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
source§impl From<ErrorMessage> for Error
impl From<ErrorMessage> for Error
source§fn from(error: ErrorMessage) -> Self
fn from(error: ErrorMessage) -> Self
Converts to this type from the input type.
source§impl From<SilentError> for Error
impl From<SilentError> for Error
source§fn from(_: SilentError) -> Self
fn from(_: SilentError) -> Self
Converts to this type from the input type.
source§impl ToTokensError for Error
impl ToTokensError for Error
source§fn to_tokens(&self, tokens: &mut TokenStream)
fn to_tokens(&self, tokens: &mut TokenStream)
Equivalent to
ToTokens::to_tokens
source§fn to_token_stream(&self) -> TokenStream
fn to_token_stream(&self) -> TokenStream
Equivalent to
ToTokens::to_token_stream
source§fn into_token_stream(self) -> TokenStreamwhere
Self: Sized,
fn into_token_stream(self) -> TokenStreamwhere
Self: Sized,
Equivalent to
ToTokens::into_token_stream
Auto Trait Implementations§
impl Freeze for Error
impl !RefUnwindSafe for Error
impl !Send for Error
impl !Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
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