Ok so i know that functions are actually function pointers, and they are 'static
.
are trait methods the same?
e.g
trait Trait {
fn method(&self);
}
struct Struct;
impl Trait for Struct {
fn method(&self) {}
}
fn main() {
let var = Struct;
var.method(); // is var.method a &'static pointer?
}
It seems logical that var.method
is also &'static
but i wanted to be sure.
so here i am asking.