pub fn done_visit(&mut self, node: &dyn FrpNodeAny) {
let n = node as *const dyn FrpNodeAny;
let a = n as usize;
todo!()
}
gets compile error of:
|
31 | let a = n as usize;
| ^^^^^^^^^^
|
= help: cast through a thin pointer first
This confuses me as I thought the standard way to do "&T" to "usize" is to do "&T as *const T as usize"