Skip to main content

entry_fn

Function entry_fn 

Source
pub fn entry_fn() -> Option<CrateItem>
Expand description

Return the program entry point (usually main) if defined in the local crate.

Returns None for library crates. For no_std crates this may resolve to a #[start] function.