Skip to main content

is_entry_point

Function is_entry_point 

Source
pub fn is_entry_point(
    name: &str,
    kind: &SymbolKind,
    exported: bool,
    lang: LangId,
) -> bool
Expand description

Determine whether a symbol is an entry point.

Entry points are:

  • Exported standalone functions (not methods — methods are class members)
  • Functions matching well-known main/init patterns (any language)
  • Test functions matching language-specific patterns