pub trait Singleton {
// Required method
fn global() -> &'static Self;
}
Expand description
Singleton Factory method
Required Methods§
sourcefn global() -> &'static Self
fn global() -> &'static Self
Retrieve instance of Singleton
pub trait Singleton {
// Required method
fn global() -> &'static Self;
}
Singleton Factory method
Retrieve instance of Singleton