delegate_impls_to_as_ref

Macro delegate_impls_to_as_ref 

Source
macro_rules! delegate_impls_to_as_ref {
    (for $target:ty => $($trait:ident $(where [$($generics:tt)*])? {  $(fn $func:ident$(<$($generic_arg:ident: $generic_arg_ty:path),*>)?(&self, $($arg:ident: $argty:ty),*) -> $ret:path;)* })* ) => { ... };
}
Available on crate feature provider only.
Expand description

A macro that delegates trait implementations to the as_ref function of the type.

Used to implement provider traits.