Struct wasm_bindgen_backend::Diagnostic
source · pub struct Diagnostic { /* private fields */ }
Implementations
sourceimpl Diagnostic
impl Diagnostic
pub fn error<T: Into<String>>(text: T) -> Diagnostic
pub fn span_error<T: Into<String>>(span: Span, text: T) -> Diagnostic
pub fn spanned_error<T: Into<String>>(node: &dyn ToTokens, text: T) -> Diagnostic
pub fn from_vec(diagnostics: Vec<Diagnostic>) -> Result<(), Diagnostic>
pub fn panic(&self) -> !
Trait Implementations
sourceimpl Debug for Diagnostic
impl Debug for Diagnostic
sourceimpl From<Error> for Diagnostic
impl From<Error> for Diagnostic
sourcefn from(err: Error) -> Diagnostic
fn from(err: Error) -> Diagnostic
Converts to this type from the input type.
sourceimpl ToTokens for Diagnostic
impl ToTokens for Diagnostic
sourcefn to_tokens(&self, dst: &mut TokenStream)
fn to_tokens(&self, dst: &mut TokenStream)
sourcefn into_token_stream(self) -> TokenStreamwhere
Self: Sized,
fn into_token_stream(self) -> TokenStreamwhere
Self: Sized,
Auto Trait Implementations
impl RefUnwindSafe for Diagnostic
impl !Send for Diagnostic
impl !Sync for Diagnostic
impl Unpin for Diagnostic
impl UnwindSafe for Diagnostic
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> Spanned for Twhere
T: ToTokens,
impl<T> Spanned for Twhere
T: ToTokens,
sourcefn span(&self) -> Span
fn span(&self) -> Span
Returns a
Span
covering the complete contents of this syntax tree
node, or Span::call_site()
if this node is empty. Read more