Trait ToSynError

Source
pub trait ToSynError {
    // Required method
    fn to_syn_error<S: Display>(&self, message: S) -> Error;
}

Required Methods§

Source

fn to_syn_error<S: Display>(&self, message: S) -> Error

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl ToSynError for Ident

Source§

fn to_syn_error<S: Display>(&self, message: S) -> Error

Source§

impl ToSynError for Span

Source§

fn to_syn_error<S: Display>(&self, message: S) -> Error

Source§

impl ToSynError for LitStr

Source§

fn to_syn_error<S: Display>(&self, message: S) -> Error

Implementors§