Following the call-expression search process for a simple example

⚓ rust    📅 2025-07-06    👤 surdeus    👁️ 1      

surdeus

I will try to follow this procedure for finding a method detailed in the reference:

Minimal Example

struct OwnType;
impl OwnType { 
    fn a_method(&self){
      println!("Hi.");
    }
}

fn main(){
  let a = OwnType;
  let b = &a;
  b.a_method(); // prints Hi.
}
Procedure 1 (click for more details) Alternative Procedure (click for more details)

However, it's hard to run the process in many cases; I wonder what others think, and what conclusions they get.

1 post - 1 participant

Read full topic

🏷️ rust_feed