Struct kernel::singleton::Singleton [−] [src]

pub struct Singleton<T> {
    // some fields omitted
}

Methods

impl<T> Singleton<T>

const fn new() -> Singleton<T>

fn get(&self) -> Option<&T>

fn register(&'static self, value: T) -> DropSingleton<T>

Trait Implementations

impl<T> Sync for Singleton<T>