Skip to main content

ToSynError

Trait ToSynError 

Source
pub trait ToSynError: Sealed {
    // Required method
    fn to_syn_err(&self) -> Error;

    // Provided method
    fn into_syn_err(self) -> Error
       where Self: Sized { ... }
}
Expand description

Convert this rejection to/into a syn::Error.

Required Methods§

Source

fn to_syn_err(&self) -> Error

Convert this rejection to a syn::Error.

Provided Methods§

Source

fn into_syn_err(self) -> Error
where Self: Sized,

Convert this rejection into a syn::Error.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§