Skip to main content

computed_getter_path

Function computed_getter_path 

Source
fn computed_getter_path(get: &LitStr, struct_name: &Ident) -> Result<Path>
Expand description

The getter path of a Computed field, #[r_data(get = "Self::f")], parsed from the literal; a leading Self becomes the struct’s name, since the getter is called from a free function the derive emits outside any impl.