Struct wasm_bindgen_backend::Diagnostic [−][src]
pub struct Diagnostic { /* fields omitted */ }
Methods
impl Diagnostic
[src]
impl Diagnostic
pub fn error<T: Into<String>>(text: T) -> Diagnostic
[src]
pub fn error<T: Into<String>>(text: T) -> Diagnostic
pub fn span_error<T: Into<String>>(node: &ToTokens, text: T) -> Diagnostic
[src]
pub fn span_error<T: Into<String>>(node: &ToTokens, text: T) -> Diagnostic
pub fn from_vec(diagnostics: Vec<Diagnostic>) -> Result<(), Diagnostic>
[src]
pub fn from_vec(diagnostics: Vec<Diagnostic>) -> Result<(), Diagnostic>
pub fn panic(&self) -> !
[src]
pub fn panic(&self) -> !
Trait Implementations
impl Debug for Diagnostic
[src]
impl Debug for Diagnostic
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl ToTokens for Diagnostic
[src]
impl ToTokens for Diagnostic
fn to_tokens(&self, dst: &mut TokenStream)
[src]
fn to_tokens(&self, dst: &mut TokenStream)
Write self
to the given TokenStream
. Read more
fn into_token_stream(self) -> TokenStream
[src]
fn into_token_stream(self) -> TokenStream
Convert self
directly into a TokenStream
object. Read more
Auto Trait Implementations
impl !Send for Diagnostic
impl !Send for Diagnostic
impl !Sync for Diagnostic
impl !Sync for Diagnostic