Trait bones_framework::prelude::piccolo::registry::Singleton

pub trait Singleton<'gc> {
    // Required method
    fn create(ctx: Context<'gc>) -> Self;
}

Required Methods§

fn create(ctx: Context<'gc>) -> Self

Object Safety§

This trait is not object safe.

Implementors§

§

impl<'gc, T> Singleton<'gc> for T
where T: Default,