Skip to main content

check_s3_replacement_methods

Function check_s3_replacement_methods 

Source
fn check_s3_replacement_methods(parsed: &ParsedImpl) -> Result<()>
Expand description

Check that every S3 instance method for a replacement generic (s3(generic = "[[<-"), or an r_name ending in <-) takes the new value last, as value (check_replacement_value_param, #1853). The generator puts the dispatch ... before that formal (s3_method_formals). Other class systems register their methods themselves, and static methods are plain functions.