derive_more::deref

Function expand

source
pub fn expand(
    input: &DeriveInput,
    trait_name: &'static str,
) -> Result<TokenStream>
Expand description

Provides the hook to expand #[derive(Deref)] into an implementation of Deref