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§
Sourcefn to_syn_err(&self) -> Error
fn to_syn_err(&self) -> Error
Convert this rejection to a syn::Error.
Provided Methods§
Sourcefn into_syn_err(self) -> Errorwhere
Self: Sized,
fn into_syn_err(self) -> Errorwhere
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".