Skip to main content

generate_view_method

Function generate_view_method 

Source
fn generate_view_method(method: &MethodInfo) -> Option<TokenStream>
Expand description

Generate a method wrapper for the View struct.

This creates a method on the View that calls through the vtable. Returns None for methods with Self in return types or &Self in parameters, since these can’t be meaningfully expressed on the type-erased View.