Skip to main content

resolve_self

Function resolve_self 

Source
pub(crate) fn resolve_self(path: &mut Path, type_ident: &Ident)
Expand description

Rewrites a leading Self in path to type_ident: a path an attribute names (#[r_data(get = "Self::f")], fallback = "Self::f") is called from a free function the macro emits outside any impl, where Self means nothing.