Skip to main content

check_singleton

Function check_singleton 

Source
pub fn check_singleton(source: &str) -> bool
Expand description

Check if Rust source code structurally matches the Singleton pattern.

Looks for static/lazy initialization patterns or instance() methods.