pub trait ExportInstances: Default {
    // Required method
    fn add_instances<'lua, T: InstanceCollector<'lua>>(
        self,
        instance_collector: &mut T
    ) -> Result<()>;
}
Expand description

implement this to easily document what global instances are exposed to lua

Required Methods§

source

fn add_instances<'lua, T: InstanceCollector<'lua>>( self, instance_collector: &mut T ) -> Result<()>

adds the instances

Object Safety§

This trait is not object safe.

Implementors§