bones_framework
0.4.0
Singleton
Required Methods
create
Object Safety
Implementors
In bones_framework::prelude::piccolo
Trait
bones_framework
::
prelude
::
piccolo
::
Singleton
Copy item path
[
−
]
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
,