Info
This post is auto-generated from RSS feed The Rust Programming Language Forum - Latest topics. Source: Following the call-expression search process for a simple example
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
🏷️ rust_feed