pub trait StaticallyNamed: NativeClass {
    const CLASS_NAME: &'static str;
}
Expand description

A NativeScript “class” that is statically named. NativeClass types that implement this trait can be registered using [InitHandle::add_class].

Required Associated Constants

The name of the class.

This name must be unique for the dynamic library. For generic or library code where this is hard to satisfy, consider using [InitHandle::add_class_as] to provide a name at registration time instead.

Implementors