darling_core::codegen::outer_from_impl

Trait OuterFromImpl

source
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§

source

fn trait_path(&self) -> Path

Gets the path of the trait being implemented.

source

fn base(&'a self) -> &'a TraitImpl<'a>

Provided Methods§

source

fn trait_bound(&self) -> Path

source

fn wrap<T: ToTokens>(&'a self, body: T, tokens: &mut TokenStream)

Object Safety§

This trait is not object safe.

Implementors§