Fix type register visibility. Add a few more examples
This commit is contained in:
@@ -313,7 +313,7 @@ impl Engine {
|
||||
}
|
||||
}
|
||||
|
||||
fn register_type<T: Clone+Any>(&mut self) {
|
||||
pub fn register_type<T: Clone+Any>(&mut self) {
|
||||
fn clone_helper<T: Clone>(t:T)->T { t.clone() };
|
||||
|
||||
&(clone_helper as fn(T)->T).register(self, "clone");
|
||||
|
Reference in New Issue
Block a user