concept function pointer in category rust

This is an excerpt from Manning's book Rust in Action.
Functions are implemented as function pointers. Closures are plain structs. Those structs are hidden from source code. They have an implicit implementation of <> implict.
What is happening here? The address that the function is stored at is being converted to an integer. In Rust, the
fnkeyword creates a function pointer.Readers who have worked through chapter 5 will understand that functions are just data. That is to say they’re sequences of bytes that make sense to the CPU. A function pointer is a pointer to the start of that sequence.
A pointer is a data type that acts as a stand-in for its referent. Within an application’s source code, pointers contain both the address of the value referred to as well as its type. The type information is something that’s stripped away in the compiled binary. Their internal representation is an integer of
usize. That makes pointers very cheap to pass around. In C, making use of function pointers can feel like arcane magic. In Rust, they’re hiding in plain sight.
Listing 12. 7. Casting a function to usize to demonstrate that it is being used as a function pointer.
fn noop() {} fn main() { let fn_ptr = noop as usize; println!("noop as usize: 0x{:x}", fn_ptr); }But what is the type of the function pointer created from
fn noop()? To describe function pointers, Rust re-uses its function signature syntax. In the case offn noop(), the type is*const fn() → (). This type is read as “a const pointer to a function that takes no arguments and returns unit”. A const pointer is immutable and unit is Rust’s stand-in value for nothingness.