[][src]Function near_bindgen_core::process_method

pub fn process_method(
    method: &ImplItemMethod,
    impl_type: &Type,
    is_trait_impl: bool
) -> Result<TokenStream2>

Attempts processing impl method. If method is pub and has &self, &mut self or self then it is considered to be a part of contract API, otherwise no tokens are is returned. If method is a valid contract API then we examine its arguments and fail if they use complex pattern matching.