pub trait OuterFromImpl<'a> {
// Required methods
fn trait_path(&self) -> Path;
fn base(&'a self) -> &'a TraitImpl<'a>;
// Provided methods
fn trait_bound(&self) -> Path { ... }
fn wrap<T: ToTokens>(&'a self, body: T, tokens: &mut TokenStream) { ... }
}
Expand description
Wrapper for “outer From” traits, such as FromDeriveInput
, FromVariant
, and FromField
.
Required Methods§
sourcefn trait_path(&self) -> Path
fn trait_path(&self) -> Path
Gets the path of the trait being implemented.
fn base(&'a self) -> &'a TraitImpl<'a>
Provided Methods§
fn trait_bound(&self) -> Path
fn wrap<T: ToTokens>(&'a self, body: T, tokens: &mut TokenStream)
Object Safety§
This trait is not object safe.