Skip to main content

bind

Macro bind 

Source
bind!() { /* proc-macro */ }
Expand description

Macro to create a static binding from a trait to a concrete type.

§Syntax

bind!(dyn EmailSender => SmtpSender);

This generates the Extract implementation for Inject<dyn EmailSender> that delegates to SmtpSender::Provider.