impl_as_ref

Macro impl_as_ref 

Source
macro_rules! impl_as_ref {
    ([$($g:ident),*],$e:ty,$t:ty) => { ... };
    ($g:ident,$e:ty,$t:ty) => { ... };
}
Expand description

support asref
use this macro, should be impl DeRef trait, and DeRef type Target equal to $e